From 053a7981d11245cba31d663aa8953d3cc66b9c39 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Thu, 13 Jun 2024 18:51:18 -0300 Subject: [PATCH] fix: update default values for WA_BUSINESS environment variables Updated default values for WA_BUSINESS_TOKEN_WEBHOOK, WA_BUSINESS_URL, and WA_BUSINESS_VERSION in env.config.ts to 'evolution', 'https://graph.facebook.com', and 'v19.0' respectively. This change ensures that the application uses more appropriate defaults if environment variables are not set, improving reliability and consistency. --- 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 ddd5ce9f..f1ab0335 100644 --- a/src/config/env.config.ts +++ b/src/config/env.config.ts @@ -366,9 +366,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 || 'v19.0', LANGUAGE: process.env.WA_BUSINESS_LANGUAGE || 'en', }, LOG: {