nuevos cuestionarios de programa y alumno, sql de update, falta revisar el proceso de servicio para actualizar el get de los id cuestionarios

This commit is contained in:
Your Name
2025-01-22 11:24:19 -06:00
parent 2fc5c1f5fa
commit bea8a7b266
25 changed files with 3114 additions and 2156 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
const helperPath = '../../helper';
const drive = require(`${helperPath}/drive`);
// const drive = require(`${helperPath}/drive`);
const validar = require(`${helperPath}/validar`);
const dbPath = '../../db/tablas';
const Carrera = require(`${dbPath}/Carrera`);
@@ -63,14 +63,14 @@ const nuevo = async (body, file) => {
where: { idUsuario },
});
})
.then(async (res) => {
/* .then(async (res) => {
if (res) throw new Error('Este alumno ya tienen un Caso Especial.');
return drive.folder(numeroCuenta);
})
.then((res) => {
carpeta = res;
return drive.uploadFile(path, `archivos.zip`, 'application/zip', carpeta);
})
}) */
.then((res) =>
CasoEspecial.create({
idUsuario,