rechazar carta aceptación, termino e informe global
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user