listo para subir a servidor de pruebas
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user