erore de lemuel

This commit is contained in:
2022-02-15 09:37:56 -06:00
parent e27646fc0f
commit cb52150249
+1 -1
View File
@@ -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 } }))