listo prestamo

This commit is contained in:
xXpuma99Xx
2022-10-24 09:55:13 -05:00
parent d1124cc2b9
commit 28c1afa8f7
17 changed files with 45 additions and 72 deletions
@@ -32,7 +32,7 @@ export class InstitucionProgramaService {
})
.then(async (programa) => {
const instituciones =
await this.institucionService.findInfoInstitucionAll();
await this.institucionService.findAll();
for (let i = 0; i < instituciones.length; i++)
await this.institucionProgramaRepository.save(
@@ -50,9 +50,7 @@ export class InstitucionProgramaService {
}
async findAllByIdInstitucion(id_institucion: number, mostrar = false) {
const institucion = await this.institucionService.findInfoInstitucionById(
id_institucion,
);
const institucion = await this.institucionService.findById(id_institucion);
const query = this.institucionProgramaRepository
.createQueryBuilder('ip')
.innerJoinAndSelect('ip.programa', 'p', 'p.id_programa != 1')