pedir cosas inecesarios eliminado

This commit is contained in:
Lemuel Marquez
2020-12-08 21:32:58 -06:00
parent 94fbd2a2b1
commit 9450983f8e
2 changed files with 30 additions and 35 deletions
+4 -1
View File
@@ -14,7 +14,10 @@ const cancelar = async (body) => {
return Servicio.findOne({
where: { idServicio },
include: [{ model: Programa, include: [{ model: Usuario }] }],
include: [
{ model: Usuario },
{ model: Programa, include: [{ model: Usuario }] },
],
})
.then((res) => {
if (!res) throw new Error('No existe este Servicio Social.');