diff --git a/src/controladores/autentificacion/Autentificacion.controller.js b/src/controladores/autentificacion/Autentificacion.controller.js index ab005e6..be4cd68 100644 --- a/src/controladores/autentificacion/Autentificacion.controller.js +++ b/src/controladores/autentificacion/Autentificacion.controller.js @@ -32,7 +32,7 @@ async function autentificacion(req, res) { // Consulta a la nueva tabla soporte_copy en dbasistente const [db_user] = await dbasistente.query( - "SELECT CODIGO_SOP, NOMBRE_SOP, USUARIO_SOP, NIVEL_SOP FROM soporte_copy WHERE USUARIO_SOP = ? AND CLAVE_SOP = ? AND ESTADO_SOP = 'V'", + "SELECT CODIGO_SOP, NOMBRE_SOP, USUARIO_SOP, NIVEL_SOP FROM soporte_copy WHERE CORREO_SOP = ? AND CLAVE_SOP = ? AND ESTADO_SOP = 'V'", { replacements: [username, password] } diff --git a/src/db.js b/src/db.js index 9e681ea..2cf4311 100644 --- a/src/db.js +++ b/src/db.js @@ -4,7 +4,7 @@ import dotenv from 'dotenv'; const solicitud = { data: [ { dbmane: 'aplicaciones' }, - { dbmane: 'asistente_qa' } + { dbmane: 'sial_help' } ] }; let configPromise = null;