actualizar al desctivar
This commit is contained in:
@@ -67,6 +67,8 @@ const status = async (body) => {
|
||||
{ where: { idEquipo: res.Equipo.idEquipo } }
|
||||
);
|
||||
await Prestamo.update({ activo: false }, { where: { idPrestamo } });
|
||||
res.Equipo.apartado = false;
|
||||
res.activo = false;
|
||||
return {
|
||||
message:
|
||||
'Ya paso el tiempo limite para recoger el dispositivo. Se ha cancelado tu prestamo.',
|
||||
|
||||
Reference in New Issue
Block a user