correcion multa al regresar
This commit is contained in:
@@ -21,7 +21,7 @@ const multar = async (body) => {
|
||||
|
||||
return Operador.findOne({ where: { idOperador: idOperadorMulta } })
|
||||
.then((res) => {
|
||||
if (!res) throw new Error('No existe esta este operador.');
|
||||
if (!res) throw new Error('No existe este operador.');
|
||||
return Infraccion.findOne({ where: { idInfraccion } });
|
||||
})
|
||||
.then((res) => {
|
||||
@@ -55,7 +55,9 @@ const multar = async (body) => {
|
||||
idPrestamo,
|
||||
})
|
||||
)
|
||||
.then((res) => ({ message: `Se levantó correctamente el reporte de multa.` }));
|
||||
.then((res) => ({
|
||||
message: `Se levantó correctamente el reporte de multa.`,
|
||||
}));
|
||||
};
|
||||
|
||||
module.exports = multar;
|
||||
|
||||
Reference in New Issue
Block a user