delete error about sancion
This commit is contained in:
@@ -56,9 +56,6 @@ export class AlumnoSancionService {
|
|||||||
where: { alumno: { id_cuenta } },
|
where: { alumno: { id_cuenta } },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (alusancion.length === 0) {
|
|
||||||
throw new NotFoundException(`El estudiante no cuenta con una sanción activa`);
|
|
||||||
}
|
|
||||||
return { student, alusancion };
|
return { student, alusancion };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user