From bb5a9ca166f95f2ef34cfc7b10e37c8e7824f06f Mon Sep 17 00:00:00 2001 From: Lemuel Marquez Date: Fri, 22 Jan 2021 19:20:33 -0600 Subject: [PATCH] campos de archivos no pueden ser null --- server/controller/Servicio/rechazarAceptacion.js | 2 +- server/controller/Servicio/rechazarInforme.js | 2 +- server/controller/Servicio/rechazarTermino.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/controller/Servicio/rechazarAceptacion.js b/server/controller/Servicio/rechazarAceptacion.js index 363852e..4790dd2 100644 --- a/server/controller/Servicio/rechazarAceptacion.js +++ b/server/controller/Servicio/rechazarAceptacion.js @@ -57,7 +57,7 @@ const cancelar = async (body) => { ) .then((res) => Servicio.update( - { idStatus: 7, cartaAceptacion: null }, + { idStatus: 7, cartaAceptacion: '' }, { where: { idServicio } } ) ) diff --git a/server/controller/Servicio/rechazarInforme.js b/server/controller/Servicio/rechazarInforme.js index 470fa3f..a88b773 100644 --- a/server/controller/Servicio/rechazarInforme.js +++ b/server/controller/Servicio/rechazarInforme.js @@ -58,7 +58,7 @@ const cancelar = async (body) => { ) .then((res) => Servicio.update( - { idStatus: 9, informeGlobal: null }, + { idStatus: 9, informeGlobal: '' }, { where: { idServicio } } ) ) diff --git a/server/controller/Servicio/rechazarTermino.js b/server/controller/Servicio/rechazarTermino.js index 43e37a4..d240157 100644 --- a/server/controller/Servicio/rechazarTermino.js +++ b/server/controller/Servicio/rechazarTermino.js @@ -58,7 +58,7 @@ const cancelar = async (body) => { ) .then((res) => Servicio.update( - { idStatus: 8, cartaTermino: null }, + { idStatus: 8, cartaTermino: '' }, { where: { idServicio } } ) )