tabla motivo
This commit is contained in:
@@ -23,9 +23,9 @@ const cancelarOperador = async (body) => {
|
||||
throw new Error(
|
||||
'Este préstamo ya no esta activo, no se puede cancelar.'
|
||||
);
|
||||
await Motivo.create({ motivo, idEquipo: res.idEquipo, idStatus: 7 });
|
||||
await Motivo.create({ motivo, idEquipo: res.idEquipo, idStatus: 9 });
|
||||
return Equipo.update(
|
||||
{ idStatus: 7 },
|
||||
{ idStatus: 9 },
|
||||
{ where: { idEquipo: res.idEquipo } }
|
||||
);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user