adjusts in websocket

This commit is contained in:
Davidson Gomes
2024-04-09 06:44:59 -03:00
parent 1172b6c871
commit 04575d8051
5 changed files with 47 additions and 14 deletions

View File

@@ -86,6 +86,7 @@ export type Sqs = {
export type Websocket = {
ENABLED: boolean;
GLOBAL_EVENTS: boolean;
};
export type WaBusiness = {
@@ -299,6 +300,7 @@ export class ConfigService {
},
WEBSOCKET: {
ENABLED: process.env?.WEBSOCKET_ENABLED === 'true',
GLOBAL_EVENTS: process.env?.WEBSOCKET_GLOBAL_EVENTS === 'true',
},
WA_BUSINESS: {
TOKEN_WEBHOOK: process.env.WA_BUSINESS_TOKEN_WEBHOOK || '',