entrega inmediata
This commit is contained in:
@@ -33,7 +33,7 @@ const status = async (body) => {
|
||||
} else message = 'El equipo ya fue entregado al usuario.';
|
||||
} else if (moment(res.horaMaxRecoger) < ahora) {
|
||||
await Equipo.update(
|
||||
{ idStatus: 3 },
|
||||
{ idStatus: 4 },
|
||||
{ where: { idEquipo: res.Equipo.idEquipo } }
|
||||
).then((res) =>
|
||||
Prestamo.update({ activo: false }, { where: { idPrestamo } })
|
||||
|
||||
Reference in New Issue
Block a user