added new Ep

This commit is contained in:
2025-10-08 15:45:21 -06:00
parent 3cdaf3c690
commit 24d2c7bba8
12 changed files with 90 additions and 57 deletions
@@ -12,8 +12,8 @@ export class ProgramaEquipoService {
private readonly ProgramaEquipoRepository: Repository<ProgramaEquipo>,
) {}
findAll() {
return `This action returns all programaEquipo`;
findAllProgramByNumber(id_equipo: number) {
return this.ProgramaEquipoRepository.find({ where: { id_equipo } });
}
async findOne(id_equipo: number) {
@@ -24,7 +24,7 @@ export class ProgramaEquipoService {
if (equipo.length === 0) {
throw new NotFoundException(`machine without programs`);
}
return equipo;
}