diff --git a/server/controller/Servicio/update.js b/server/controller/Servicio/update.js index 4043ecb..cbac17f 100644 --- a/server/controller/Servicio/update.js +++ b/server/controller/Servicio/update.js @@ -79,6 +79,11 @@ const update = async (body, files) => { ); return Servicio.update(dataUpdate, { where: { idServicio } }); }) + .then(async (res) => { + if (dataUpdate.cartaTermino || dataUpdate.informeGlobal) + return validar.validarPreTermino(idServicio); + return false; + }) .then((res) => ({ message: 'Se guardo correctamente los cambios de este servicio.', }));