listo equipos consecutivos
This commit is contained in:
@@ -53,7 +53,10 @@ 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.horaFin = ahora.add(2, 'h').format();
|
||||
return Equipo.update({ idStatus: 2 }, { where: { idEquipo } });
|
||||
return Equipo.update(
|
||||
{ idStatus: 2, prestado: true },
|
||||
{ where: { idEquipo } }
|
||||
);
|
||||
})
|
||||
.then(() => Prestamo.update(update, { where: { idPrestamo } }))
|
||||
.then(() =>
|
||||
|
||||
Reference in New Issue
Block a user