restrincciones

This commit is contained in:
xXpuma99Xx
2022-02-20 23:53:10 -06:00
parent 9c321c622f
commit ee27a9db64
4 changed files with 11 additions and 31 deletions
-1
View File
@@ -42,7 +42,6 @@ const multar = async (body) => {
})
.then((res) => {
if (!res) throw new Error('No existe esta infracción.');
// Checar si tiene una multa activa, agragar días a multa
gravedad = res.gravedad;
return Prestamo.findOne({
where: { idPrestamo },