This commit is contained in:
2022-02-05 21:40:39 -06:00
parent 69cd00bc43
commit 564be23729
6 changed files with 15 additions and 35 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ const status = async (body) => {
{ idStatus: 4 },
{ where: { idEquipo: res.Equipo.idEquipo } }
).then(() =>
Prestamo.update({ activo: false }, { where: { idPrestamo } })
Prestamo.update(
{ activo: false, canceladoOperador: true, idOperador: 1 },
{ where: { idPrestamo } }
)
);
message =
'Ya paso el tiempo limite para recoger el dispositivo. Se ha cancelado tu prestamo.';