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
+1 -1
View File
@@ -17,7 +17,7 @@ const cancelar = async (body) => {
include: [{ model: Programa, include: [{ model: Usuario }] }],
})
.then((res) => {
if (!res) throw new Error('No existe este servicio.');
if (!res) throw new Error('No existe este Servicio Social.');
if (res.idStatus === 10)
throw new Error('Este Servicio Social ya fue cancelado.');
if (res.idStatus === 6)