ordenar
This commit is contained in:
@@ -52,6 +52,7 @@ const activos = async (body) => {
|
||||
],
|
||||
limit: 25,
|
||||
offset: 25 * (pagina - 1),
|
||||
order: [['createdAt', 'DESC']],
|
||||
});
|
||||
})
|
||||
.then((res) => {
|
||||
|
||||
@@ -58,7 +58,7 @@ const historial = async (body) => {
|
||||
],
|
||||
limit: 25,
|
||||
offset: 25 * (pagina - 1),
|
||||
// order: [['createdAt', 'DESC']],
|
||||
order: [['createdAt', 'DESC']],
|
||||
}).then((res) => {
|
||||
for (let i = 0; i < res.rows.length; i++) {
|
||||
delete res.rows[i].dataValues.idUsuario;
|
||||
|
||||
@@ -20,6 +20,7 @@ const historialEquipo = async (body) => {
|
||||
],
|
||||
limit: 25,
|
||||
offset: 25 * (pagina - 1),
|
||||
order: [['createdAt', 'DESC']],
|
||||
}).then((res) => {
|
||||
for (let i = 0; i < res.rows.length; i++) {
|
||||
delete res.rows[i].dataValues.idUsuario;
|
||||
|
||||
@@ -31,6 +31,7 @@ const historialUsuario = async (body) => {
|
||||
],
|
||||
limit: 25,
|
||||
offset: 25 * (pagina - 1),
|
||||
order: [['createdAt', 'DESC']],
|
||||
}).then((res) => {
|
||||
for (let i = 0; i < res.rows.length; i++) {
|
||||
delete res.rows[i].dataValues.idOperadorEntrega;
|
||||
|
||||
Reference in New Issue
Block a user