mini cambios#

This commit is contained in:
xXpuma99Xx
2022-01-24 15:58:34 -06:00
parent 9af90dc0cf
commit ffadb76178
15 changed files with 119 additions and 111 deletions
@@ -45,7 +45,7 @@ const historialMultasEquipo = async (body) => {
limit: 25,
offset: 25 * (pagina - 1),
order: [['createdAt', 'DESC']],
}).then((res) => ({ count: res.count, historialMultasEquipo: res.rows }));
});
};
module.exports = historialMultasEquipo;
@@ -58,18 +58,18 @@ const historialMultasUsuario = async (body) => {
'createdAt',
],
},
{ model: Infraccion },
{
model: Operador,
as: 'OperadorMulta',
attributes: ['idOperador', 'operador'],
},
{ model: Infraccion },
],
attributes: ['idMulta', 'descripcion', 'fechaFin', 'createdAt'],
limit: 25,
offset: 25 * (pagina - 1),
order: [['createdAt', 'DESC']],
}).then((res) => ({ count: res.count, historialMultasUsuario: res.rows }));
});
};
module.exports = historialMultasUsuario;