mini cambios#
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user