entrega inmediata

This commit is contained in:
xXpuma99Xx
2022-01-27 13:12:38 -06:00
parent 6ac74c5232
commit f32ce95a55
11 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -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 } })