diff --git a/server/controller/Prestamo/historialUsuario.js b/server/controller/Prestamo/historialUsuario.js index d10d017..d299133 100644 --- a/server/controller/Prestamo/historialUsuario.js +++ b/server/controller/Prestamo/historialUsuario.js @@ -45,11 +45,16 @@ const historialUsuario = async (body) => { .idModulo; delete res.rows[i].dataValues.Equipo.dataValues.Carrito.dataValues .idTipoCarrito; + delete res.rows[i].dataValues.Equipo.dataValues.Carrito.dataValues.activo; if (res.rows[i].OperadorEntrega) { delete res.rows[i].dataValues.OperadorEntrega.dataValues.password; + delete res.rows[i].dataValues.OperadorEntrega.dataValues.activo; + delete res.rows[i].dataValues.OperadorEntrega.dataValues.idTipoUsuario; } if (res.rows[i].OperadorRegreso) { delete res.rows[i].dataValues.OperadorRegreso.dataValues.password; + delete res.rows[i].dataValues.OperadorRegreso.dataValues.activo; + delete res.rows[i].dataValues.OperadorRegreso.dataValues.idTipoUsuario; } } return { count: res.count, historialUsuario: res.rows };