opeardor multa y operador cancelacion
This commit is contained in:
@@ -28,10 +28,10 @@ const historialMultasUsuario = async (body) => {
|
||||
},
|
||||
],
|
||||
},
|
||||
{ model: Operador, as: 'OperadorRegreso' },
|
||||
],
|
||||
},
|
||||
{ model: Infraccion },
|
||||
{ model: Operador, as: 'OperadorMulta' },
|
||||
],
|
||||
limit: 25,
|
||||
offset: 25 * (pagina - 1),
|
||||
@@ -40,14 +40,15 @@ const historialMultasUsuario = async (body) => {
|
||||
for (let i = 0; i < res.rows.length; i++) {
|
||||
delete res.rows[i].dataValues.idInfraccion;
|
||||
delete res.rows[i].dataValues.idPrestamo;
|
||||
delete res.rows[i].dataValues.idOperadorMulta;
|
||||
delete res.rows[i].dataValues.OperadorMulta.dataValues.password;
|
||||
delete res.rows[i].dataValues.OperadorMulta.dataValues.idTipoUsuario;
|
||||
delete res.rows[i].dataValues.OperadorMulta.dataValues.activo;
|
||||
delete res.rows[i].dataValues.Prestamo.dataValues.idOperadorEntrega;
|
||||
delete res.rows[i].dataValues.Prestamo.dataValues.idOperadorRegreso;
|
||||
delete res.rows[i].dataValues.Prestamo.dataValues.idOperadorCancelacion;
|
||||
delete res.rows[i].dataValues.Prestamo.dataValues.idUsuario;
|
||||
delete res.rows[i].dataValues.Prestamo.dataValues.idEquipo;
|
||||
delete res.rows[i].dataValues.Prestamo.dataValues.OperadorRegreso
|
||||
.dataValues.password;
|
||||
delete res.rows[i].dataValues.Prestamo.dataValues.OperadorRegreso
|
||||
.dataValues.idTipoUsuario;
|
||||
delete res.rows[i].dataValues.Prestamo.dataValues.Equipo.dataValues
|
||||
.idCarrito;
|
||||
delete res.rows[i].dataValues.Prestamo.dataValues.Equipo.dataValues
|
||||
|
||||
Reference in New Issue
Block a user