nuevo endpoint
This commit is contained in:
@@ -286,4 +286,11 @@ export class EquipoService {
|
||||
async findAllProcesadorTipoEquipos() {
|
||||
return await this.procesadorTipoEquipoRepo.find();
|
||||
}
|
||||
|
||||
async findAllProcesadorforTipoEquipos(idEquipo: number) {
|
||||
return await this.procesadorTipoEquipoRepo.find({
|
||||
where: { tipoEquipo: { id_tipo_de_equipo: idEquipo } },
|
||||
relations: ['procesador', 'tipoEquipo'],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user