This commit is contained in:
Andres2908
2021-09-23 19:33:41 -05:00
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -39,7 +39,7 @@ const obtenerProfesor = async (numeroCuenta) => {
});
return conn
.query(`SELECT * FROM profesor WHERE no_trabajador = ${numeroCuenta}`)
.query(`SELECT * FROM Profesor WHERE NumTrabajador = ${numeroCuenta}`)
.then((rows) => {
conn.end();
if (rows.length === 0) return null;
@@ -52,6 +52,3 @@ const obtenerProfesor = async (numeroCuenta) => {
};
module.exports = { obtenerAlumno, obtenerProfesor };
// obtenerAlumno('316313528');
// 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,