correccion a carrito y avence de equipo

This commit is contained in:
Andres2908
2022-05-13 18:07:51 -05:00
parent af699f60c4
commit 1424e76d42
3 changed files with 14 additions and 2 deletions
+8
View File
@@ -30,4 +30,12 @@ export class ProgramaService {
return programa
})
}
findByPrograma(programa: string, validarNoExiste = true) {
return this.repository.findOne({ programa }).then((programa) => {
if (validarNoExiste && !programa)
throw new NotFoundException('No existe este usuario.');
return programa;
});
}
}