8 Commits

Author SHA1 Message Date
Patriots01 8a6fdc718a modificacinoes 2026-04-22 21:01:28 +01:00
Patriots01 954c76b899 Mod 2026-04-22 20:40:40 +01:00
Patriots01 577f40a817 Modificaciones 2026-04-22 20:24:40 +01:00
Patriots01 c1e79a0b7b Se quito la validacion del periodo que causa erro, no afecta a la logica 2026-02-05 01:09:25 +00:00
Patriots01 ceeb284bfa Merge branch 'dev' 2026-02-05 01:07:09 +00:00
Patriots01 73b5a91d89 Se corrigio un error 2026-02-05 00:58:56 +00:00
Patriots01 d2223b8b4c Se agrego manual el id, despues revisar para que funcione en automatico 2026-02-05 00:54:43 +00:00
Patriots01 13d3981f58 Se agrego el id del peridodo en automatico al momeno de registrar 2026-02-05 00:49:38 +00:00
3 changed files with 1382 additions and 3019 deletions
+1364 -3014
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": "source ~/.nvm/nvm.sh && nvm use 16.15.1 && npm install && node ./server/app"
"start": "npm install && node ./server/app"
},
"repository": {
"type": "git",
@@ -17,8 +17,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^0.25.0",
"bcrypt": "^5.0.1",
"axios": "^1.13.4",
"bcrypt": "^6.0.0",
"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": "^8.5.1",
"jsonwebtoken": "^9.0.3",
"mariadb": "^2.5.3",
"moment": "^2.29.1",
"multer": "^1.4.4",
"multer": "^2.0.2",
"nodemailer": "^7.0.5",
"sequelize": "^6.6.2",
"validator": "^13.6.0"
@@ -37,6 +37,19 @@ 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,