nuevo endpoint

This commit is contained in:
2025-10-31 12:11:12 -06:00
parent bf2d6d6907
commit b853d02be4
4 changed files with 21 additions and 0 deletions
+7
View File
@@ -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'],
});
}
}