error en rechazo corregido
This commit is contained in:
@@ -13,7 +13,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.');
|
||||
@@ -59,7 +62,7 @@ const cancelar = async (body) => {
|
||||
})
|
||||
.then((res) => {
|
||||
return Servicio.update(
|
||||
{ idStatus: 7, cartaAceptacion: "" },
|
||||
{ idStatus: 7, cartaAceptacion: '' },
|
||||
{ where: { idServicio } }
|
||||
);
|
||||
})
|
||||
|
||||
@@ -13,7 +13,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.');
|
||||
|
||||
@@ -13,7 +13,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.');
|
||||
|
||||
Reference in New Issue
Block a user