diff --git a/server/controller/Prestamo/entregar.js b/server/controller/Prestamo/entregar.js index 0c85c41..e62a64a 100644 --- a/server/controller/Prestamo/entregar.js +++ b/server/controller/Prestamo/entregar.js @@ -50,7 +50,7 @@ const entregar = async (body) => { }); if (ahora > moment(`${ahora.format('YYYY-MM-DD')} 17:45`)) update.horaFin = moment(`${ahora.format('YYYY-MM-DD')} 19:45`); - else update.horaInicio = ahora.add(2, 'h').format(); + else update.horaFin = ahora.add(2, 'h').format(); return Equipo.update({ idStatus: 2 }, { where: { idEquipo } }); }) .then(() => Prestamo.update(update, { where: { idPrestamo } }))