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 } }
|
||||
);
|
||||
})
|
||||
|
||||
@@ -158,7 +158,8 @@ const dataStatus = async () => {
|
||||
'Cargando',
|
||||
'Reparación',
|
||||
'Mantenimiento',
|
||||
'Revisión',
|
||||
'Desactivado',
|
||||
'Revisar',
|
||||
];
|
||||
|
||||
console.log('\nPaso 6) Insertando data status.'.bold.blue);
|
||||
|
||||
Reference in New Issue
Block a user