From 5fa80ef64ad79b714180f96e5e697c463c89c106 Mon Sep 17 00:00:00 2001 From: Lemuel Marquez Date: Sun, 23 May 2021 21:14:20 -0500 Subject: [PATCH] Prueba --- server/controller/Prestamo/historial.js | 4 ++-- server/controller/Prestamo/historialUsuario.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/controller/Prestamo/historial.js b/server/controller/Prestamo/historial.js index d2e26cb..7e9683e 100644 --- a/server/controller/Prestamo/historial.js +++ b/server/controller/Prestamo/historial.js @@ -47,10 +47,10 @@ const historial = async (body) => { delete res.rows[i].dataValues.Usuario.dataValues.idTipoUsuario; delete res.rows[i].dataValues.Usuario.dataValues.idCarrera; delete res.rows[i].dataValues.Usuario.dataValues.password; - if (res.rows[i].OperadorEntrega.idOperador) { + if (res.rows[i].OperadorEntrega) { delete res.rows[i].dataValues.OperadorEntrega.dataValues.password; } - if (res.rows[i].OperadorRegreso.idOperador) { + if (res.rows[i].OperadorRegreso) { delete res.rows[i].dataValues.OperadorRegreso.dataValues.password; } } diff --git a/server/controller/Prestamo/historialUsuario.js b/server/controller/Prestamo/historialUsuario.js index 6efd569..d10d017 100644 --- a/server/controller/Prestamo/historialUsuario.js +++ b/server/controller/Prestamo/historialUsuario.js @@ -45,10 +45,10 @@ const historialUsuario = async (body) => { .idModulo; delete res.rows[i].dataValues.Equipo.dataValues.Carrito.dataValues .idTipoCarrito; - if (res.rows[i].OperadorEntrega.idOperador) { + if (res.rows[i].OperadorEntrega) { delete res.rows[i].dataValues.OperadorEntrega.dataValues.password; } - if (res.rows[i].OperadorRegreso.idOperador) { + if (res.rows[i].OperadorRegreso) { delete res.rows[i].dataValues.OperadorRegreso.dataValues.password; } }