Skip to content

Commit 053a798

Browse files
committed
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.
1 parent 5f1f025 commit 053a798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config/env.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,9 @@ export class ConfigService {
366366
GLOBAL_EVENTS: process.env?.WEBSOCKET_GLOBAL_EVENTS === 'true',
367367
},
368368
WA_BUSINESS: {
369-
TOKEN_WEBHOOK: process.env.WA_BUSINESS_TOKEN_WEBHOOK || '',
370-
URL: process.env.WA_BUSINESS_URL || '',
371-
VERSION: process.env.WA_BUSINESS_VERSION || '',
369+
TOKEN_WEBHOOK: process.env.WA_BUSINESS_TOKEN_WEBHOOK || 'evolution',
370+
URL: process.env.WA_BUSINESS_URL || 'https://graph.facebook.com',
371+
VERSION: process.env.WA_BUSINESS_VERSION || 'v19.0',
372372
LANGUAGE: process.env.WA_BUSINESS_LANGUAGE || 'en',
373373
},
374374
LOG: {

0 commit comments

Comments
 (0)