sistema
This commit is contained in:
@@ -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.';
|
||||
|
||||
Reference in New Issue
Block a user