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.');
|
||||
|
||||
@@ -5,7 +5,7 @@ const Programa = require('./tablas/Programa');
|
||||
|
||||
const correos = [
|
||||
'lemuel@acatlan.unam.mx',
|
||||
'araceliperezpalma@gmail',
|
||||
'araceliperezpalma@gmail.com',
|
||||
'nol_123@hotmail.es',
|
||||
'adrianaroquedelangel@gmail.com',
|
||||
'lucel21@hotmail.com',
|
||||
|
||||
Reference in New Issue
Block a user