diff --git a/server/controller/Prestamo/status.js b/server/controller/Prestamo/status.js index 20cf4b8..5b6775a 100644 --- a/server/controller/Prestamo/status.js +++ b/server/controller/Prestamo/status.js @@ -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, }; }