sin institucion findById
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user