rechazar carta aceptación, termino e informe global

This commit is contained in:
Lemuel Marquez
2020-11-27 18:55:18 -06:00
parent e836000029
commit 4ac9bffc77
12 changed files with 231 additions and 49 deletions
@@ -39,10 +39,11 @@ const nuevo = async (body) => {
'Aun no se puede contestar el cuestionario este Servicio Social.'
);
case 5:
case 6:
throw new Error(
'Este Servicio Social ya paso la fase de contestar el cuestionario.'
);
case 6:
throw new Error('Este Servicio Social ya finalizó.');
case 7:
case 8:
case 9:
@@ -50,7 +51,7 @@ const nuevo = async (body) => {
'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.');
throw new Error('Este Servicio Social fue cancelado.');
}
})
.then((res) => {
@@ -60,7 +61,7 @@ const nuevo = async (body) => {
);
})
.then((res) => {
return { message: 'Se guardo tus respuestas correctamente.' };
return { message: 'Se guradaron tus respuestas correctamente.' };
});
};