diff --git a/server/controller/Servicio/rechazarAceptacion.js b/server/controller/Servicio/rechazarAceptacion.js index 729c57e..7280879 100644 --- a/server/controller/Servicio/rechazarAceptacion.js +++ b/server/controller/Servicio/rechazarAceptacion.js @@ -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 } } ); }) diff --git a/server/controller/Servicio/rechazarInforme.js b/server/controller/Servicio/rechazarInforme.js index 1953a8c..58054da 100644 --- a/server/controller/Servicio/rechazarInforme.js +++ b/server/controller/Servicio/rechazarInforme.js @@ -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.'); diff --git a/server/controller/Servicio/rechazarTermino.js b/server/controller/Servicio/rechazarTermino.js index 8b175a3..cc7cf44 100644 --- a/server/controller/Servicio/rechazarTermino.js +++ b/server/controller/Servicio/rechazarTermino.js @@ -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.'); diff --git a/server/db/data-fake.js b/server/db/data-fake.js index d7dd0a6..cced7db 100644 --- a/server/db/data-fake.js +++ b/server/db/data-fake.js @@ -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',