Cambios minimos
This commit is contained in:
@@ -36,8 +36,6 @@ const obtenerCarrera = async (idCarrera) => {
|
||||
.query(`SELECT *FROM carrera WHERE id_carrera = ${idCarrera}`)
|
||||
.then((rows) => {
|
||||
conn.end();
|
||||
// console.log(rows[0]);
|
||||
// if (rows[0].length === 0) return null;
|
||||
return rows[0];
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
@@ -41,7 +41,6 @@ const escolares = async (body) => {
|
||||
|
||||
return Usuario.create({
|
||||
numeroCuenta: numeroCuenta,
|
||||
password: 'hola',
|
||||
nombre: usuario.nombre,
|
||||
semestre: 8,
|
||||
idCarrera: usuario.id_carrera,
|
||||
|
||||
@@ -17,11 +17,6 @@ Usuario.init(
|
||||
allowNull: false,
|
||||
unique: true,
|
||||
},
|
||||
password: {
|
||||
type: DataTypes.STRING(60),
|
||||
allowNull: true,
|
||||
defaultValue: null,
|
||||
},
|
||||
semestre: {
|
||||
type: DataTypes.STRING(30),
|
||||
allowNull: false,
|
||||
|
||||
Reference in New Issue
Block a user