This commit is contained in:
Lemuel Marquez
2021-06-29 09:55:18 -05:00
parent 1d071bbe31
commit b84c1312fc
5 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ const status = async (body) => {
message: 'El equipo ya fue entregado al usuario.',
prestamo: res,
};
} else if (moment(res.horaInicio) < ahora) {
} else if (moment(res.horaMaxRecoger) < ahora) {
await Equipo.update(
{ apartado: false },
{ where: { idEquipo: res.Equipo.idEquipo } }