listo para subir a servidor de pruebas

This commit is contained in:
Lemuel Marquez
2021-04-30 16:08:54 -05:00
parent b781a54ce1
commit 72d330d9fe
+3 -2
View File
@@ -39,9 +39,10 @@ const status = async (body) => {
};
else if (moment(res.horaInicio) < ahora) {
await Equipo.update({ apartado: false }, { where: { idEquipo } });
await Prestamo.update({ activo: false }, { where: idPrestamo });
await Prestamo.update({ activo: false }, { where: { idPrestamo } });
return {
message: 'Ya paso el tiempo limite para recoger el dispositivo.',
message:
'Ya paso el tiempo limite para recoger el dispositivo. Se ha cancelado tu prestamo.',
prestamo: res,
};
}