update librerias
This commit is contained in:
@@ -43,7 +43,7 @@ export class CarreraProgramaService {
|
||||
'Esta carrera no pertenece a tu institución.',
|
||||
);
|
||||
return this.repository
|
||||
.findOne({ institucionCarrera, programa })
|
||||
.findOne({ where: { institucionCarrera, programa } })
|
||||
.then((existeCarretaPrograma) => {
|
||||
if (existeCarretaPrograma)
|
||||
throw new ConflictException(
|
||||
@@ -80,7 +80,7 @@ export class CarreraProgramaService {
|
||||
|
||||
findById(id_carrera_programa: number) {
|
||||
return this.repository
|
||||
.findOne({ id_carrera_programa })
|
||||
.findOne({ where: { id_carrera_programa } })
|
||||
.then((carreraPrograma) => {
|
||||
if (!carreraPrograma)
|
||||
throw new NotFoundException('No existe este id carrera programa.');
|
||||
|
||||
Reference in New Issue
Block a user