using cuestionario2 has atribute, create credentials for testing

This commit is contained in:
Your Name
2025-02-13 13:57:28 -05:00
parent f89b7e05db
commit 7bef28e60f
22 changed files with 251 additions and 39 deletions
+10 -4
View File
@@ -178,15 +178,21 @@ const validarPreTermino = (idServicio) => {
// validar el if
console.log("este es el id en la busqieda", idServicio);
return Servicio.findOne({ where: { idServicio } })
.then((res) => {
console.log("validando pre termino", res);
if (
res.idCuestionarioPrograma &&
res.idCuestionarioAlumno &&
(res.idCuestionarioPrograma || res.idCuestionarioPrograma2) &&
(res.idCuestionarioAlumno || res.idCuestionarioAlumno2) &&
res.cartaTermino &&
res.informeGlobal
)
return Servicio.update({ idStatus: 5 }, { where: { idServicio } });
) return Servicio.update({ idStatus: 5 }, { where: { idServicio } });
return false;
})
.then((res) =>