2 Commits

Author SHA1 Message Date
Patriots01 b1465cfdb4 Mod 2026-04-22 21:33:22 +01:00
Patriots01 a4a714616e mod 2026-04-22 21:32:10 +01:00
3 changed files with 3045 additions and 1408 deletions
+3040 -1390
View File
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -8,7 +8,7 @@
"db:install": "node ./server/db/install",
"db:data-fake": "node ./server/db/data-fake",
"dev": "nodemon ./server/app",
"start": "npm install && node ./server/app"
"start": "source ~/.nvm/nvm.sh && nvm use 16.15.1 && npm install && node ./server/app"
},
"repository": {
"type": "git",
@@ -17,8 +17,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^1.13.4",
"bcrypt": "^6.0.0",
"axios": "^0.25.0",
"bcrypt": "^5.0.1",
"body-parser": "^1.19.0",
"colors": "^1.4.0",
"convert-array-to-csv": "^2.0.0",
@@ -28,10 +28,10 @@
"express": "^4.17.1",
"fs": "^0.0.1-security",
"gmail-send": "^1.8.14",
"jsonwebtoken": "^9.0.3",
"jsonwebtoken": "^8.5.1",
"mariadb": "^2.5.3",
"moment": "^2.29.1",
"multer": "^2.0.2",
"multer": "^1.4.4",
"nodemailer": "^7.0.5",
"sequelize": "^6.6.2",
"validator": "^13.6.0"
@@ -37,19 +37,6 @@ async function realizarInscripcion(req, res) {
});
}
// // Validacion del periodo
// const periodoActivo = await Periodo.findOne({
// where: {
// activo: 1 // o true
// }
// });
// if (!periodoActivo) {
// throw new Error("No hay un periodo activo");
// }
// 3. Crear inscripción
await AlumnoInscrito.create({
id_cuenta: usuario.id_cuenta,