From 61d6ddfa81112cc105a31e39ad8cca860aa63d5b Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Thu, 13 Jun 2024 18:53:20 -0300 Subject: [PATCH] fix: update default values for WA_BUSINESS configuration Updated the default values for TOKEN_WEBHOOK, URL, and VERSION in the WA_BUSINESS configuration. This change ensures that the application has more meaningful default settings, improving the initial setup experience. The impact is limited to default behavior when environment variables are not set. --- src/config/env.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/env.config.ts b/src/config/env.config.ts index e3a874666..2385972fb 100644 --- a/src/config/env.config.ts +++ b/src/config/env.config.ts @@ -327,9 +327,9 @@ export class ConfigService { GLOBAL_EVENTS: process.env?.WEBSOCKET_GLOBAL_EVENTS === 'true', }, WA_BUSINESS: { - TOKEN_WEBHOOK: process.env.WA_BUSINESS_TOKEN_WEBHOOK || '', - URL: process.env.WA_BUSINESS_URL || '', - VERSION: process.env.WA_BUSINESS_VERSION || '', + TOKEN_WEBHOOK: process.env.WA_BUSINESS_TOKEN_WEBHOOK || 'evolution', + URL: process.env.WA_BUSINESS_URL || 'https://graph.facebook.com', + VERSION: process.env.WA_BUSINESS_VERSION || 'v18.0', LANGUAGE: process.env.WA_BUSINESS_LANGUAGE || 'en', }, LOG: {