conexion profesores corregida
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user