error en nombre
This commit is contained in:
@@ -25,7 +25,7 @@ const escolares = async (body) => {
|
||||
.then((res) =>
|
||||
Usuario.create({
|
||||
usuario: alumno.cuenta,
|
||||
nombre: nombre,
|
||||
nombre: alumno.nombre,
|
||||
idCarrera: res.idCarrera,
|
||||
})
|
||||
)
|
||||
@@ -36,7 +36,8 @@ const escolares = async (body) => {
|
||||
})
|
||||
)
|
||||
.then((res) => (usuario = res));
|
||||
}
|
||||
} else if (usuario.password)
|
||||
throw new Error('Este número de cuenta ya fue registrado.');
|
||||
return usuario;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user