listo
This commit is contained in:
@@ -26,7 +26,10 @@ const cancelar = async (body) => {
|
||||
);
|
||||
})
|
||||
.then((res) =>
|
||||
Prestamo.update({ activo: false }, { where: { idPrestamo } })
|
||||
Prestamo.update(
|
||||
{ activo: false, cancelado: true },
|
||||
{ where: { idPrestamo } }
|
||||
)
|
||||
)
|
||||
.then((res) => ({ message: 'Se cancelo el prestamo correctamente.' }));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user