sin institucion findById

This commit is contained in:
xXpuma99Xx
2022-09-25 23:27:25 -05:00
parent 7f310256ba
commit b3f60c6f8d
25 changed files with 190 additions and 151 deletions
@@ -31,7 +31,8 @@ export class InstitucionProgramaService {
);
})
.then(async (programa) => {
const instituciones = await this.institucionService.findAll();
const instituciones =
await this.institucionService.findInfoInstitucionAll();
for (let i = 0; i < instituciones.length; i++)
await this.institucionProgramaRepository.save(
@@ -45,7 +46,9 @@ export class InstitucionProgramaService {
}
async findAllByIdInstitucion(id_institucion: number, mostrar = false) {
const institucion = await this.institucionService.findById(id_institucion);
const institucion = await this.institucionService.findInfoInstitucionById(
id_institucion,
);
const query = this.institucionProgramaRepository
.createQueryBuilder('ip')
.innerJoinAndSelect('ip.programa', 'p', 'p.id_programa != 1')