conexion profesores corregida

This commit is contained in:
xXpuma99Xx
2021-09-23 16:46:14 -05:00
parent 0f5698364f
commit 793a250ee3
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -43,7 +43,6 @@ const obtenerProfesor = async (numeroCuenta) => {
.then((rows) => {
conn.end();
if (rows.length === 0) return null;
console.log(rows[0]);
return rows[0];
})
.catch((err) => {
@@ -53,5 +52,3 @@ const obtenerProfesor = async (numeroCuenta) => {
};
module.exports = { obtenerAlumno, obtenerProfesor };
obtenerProfesor('138158');
+1 -1
View File
@@ -46,7 +46,7 @@ const escolares = async (body) => {
});
} else {
usuario.idTipoUsuario = 3;
usuario.nombre = `${usuario.a_paterno.trim()} ${usuario.a_materno.trim()} ${usuario.nombre.trim()}`;
usuario.nombre = `${usuario.ApPaterno.trim()} ${usuario.ApMaterno.trim()} ${usuario.Nombre.trim()}`;
}
return Usuario.create({
usuario: numeroCuenta,