sin horario

This commit is contained in:
xXpuma99Xx
2022-02-22 21:35:07 -06:00
parent 48d882bbd2
commit 9741afc8ae
2 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -50,9 +50,10 @@ const entregar = async (body) => {
'Ya pasó el tiempo límite para recoger el equipo de cómputo.'
);
});
if (ahora > moment(`${ahora.format('YYYY-MM-DD')} 17:45`))
update.horaFin = moment(`${ahora.format('YYYY-MM-DD')} 19:45`);
else update.horaFin = ahora.add(2, 'h').format();
// if (ahora > moment(`${ahora.format('YYYY-MM-DD')} 17:45`))
// update.horaFin = moment(`${ahora.format('YYYY-MM-DD')} 19:45`);
// else
update.horaFin = ahora.add(2, 'h').format();
return Equipo.update(
{ idStatus: 2, prestado: true },
{ where: { idEquipo } }