equipos con una opción mas

This commit is contained in:
xXpuma99Xx
2022-06-24 19:15:49 -05:00
parent 41925a3e77
commit b2d773bd14
5 changed files with 62 additions and 29 deletions
+13 -1
View File
@@ -52,7 +52,19 @@ export class ModuloService {
findAllByIdInstitucion(id_institucion: number) {
return this.institucionService
.findById(id_institucion)
.then((institucion) => this.repository.find({ institucion }));
.then((institucion) =>
this.repository
.createQueryBuilder('m')
.innerJoinAndSelect(
'm.institucion',
'i',
'i.id_institucion = :id_institucion',
{ id_institucion: institucion.id_institucion },
)
.orderBy('i.institucion')
.orderBy('m.modulo')
.getMany(),
);
}
findById(id_modulo: number) {