Merge branch 'dev' of https://repositorio.acatlan.unam.mx/CIDWA/pcpuma_acatlan_api into tomy
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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