equipos con una opción mas
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user