error al resubir pdf

This commit is contained in:
Lemuel Marquez
2020-12-08 18:43:06 -06:00
parent 683fef59a3
commit 94fbd2a2b1
3 changed files with 20 additions and 10 deletions
+7 -2
View File
@@ -42,11 +42,16 @@ const cartaTermino = async (body, file) => {
'Este Servicio Social se encuentra rechazado. No se puede avanzar hasta que se corriga lo necesario.'
);
case 10:
throw new Error('Este Servicio Social esta cancelado. Comunicate con COESI para solucionar tu problema.');
throw new Error(
'Este Servicio Social esta cancelado. Comunicate con COESI para solucionar tu problema.'
);
}
})
.then((res) => {
return Servicio.update({ cartaTermino: res }, { where: { idServicio } });
return Servicio.update(
{ cartaTermino: res, idStatus: 5 },
{ where: { idServicio } }
);
})
.then((res) => {
return validar.validarPreTermino(idServicio);