using cuestionario2 has atribute, create credentials for testing
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user