Cambios minimos

This commit is contained in:
Andres2908
2022-01-26 18:33:44 -06:00
parent 6983bc295d
commit 6459fc4bf0
3 changed files with 0 additions and 8 deletions
-2
View File
@@ -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) => {
-1
View File
@@ -41,7 +41,6 @@ const escolares = async (body) => {
return Usuario.create({
numeroCuenta: numeroCuenta,
password: 'hola',
nombre: usuario.nombre,
semestre: 8,
idCarrera: usuario.id_carrera,
-5
View File
@@ -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,