correcion multa al regresar

This commit is contained in:
xXpuma99Xx
2021-09-24 14:09:25 -05:00
parent 648af4ed38
commit 2bda454e1c
4 changed files with 35 additions and 22 deletions
+4 -2
View File
@@ -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;