File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ COPY ./package.json .
1414ENV TZ=America/Sao_Paulo
1515ENV DOCKER_ENV=true
1616
17+ ENV SERVER_TYPE=http
18+ ENV SERVER_PORT=8080
1719ENV SERVER_URL=http://localhost:8080
1820
1921ENV CORS_ORIGIN=*
Original file line number Diff line number Diff line change @@ -269,8 +269,8 @@ export class ConfigService {
269269 } ,
270270 EVENTS : {
271271 APPLICATION_STARTUP : process . env ?. WEBHOOK_EVENTS_APPLICATION_STARTUP === 'true' ,
272- INSTANCE_CREATE : process . env ?. WEBHOOK_EVENTS_INSTANCE_CREATE === 'false ' ,
273- INSTANCE_DELETE : process . env ?. WEBHOOK_EVENTS_INSTANCE_DELETE === 'false ' ,
272+ INSTANCE_CREATE : process . env ?. WEBHOOK_EVENTS_INSTANCE_CREATE === 'true ' ,
273+ INSTANCE_DELETE : process . env ?. WEBHOOK_EVENTS_INSTANCE_DELETE === 'true ' ,
274274 QRCODE_UPDATED : process . env ?. WEBHOOK_EVENTS_QRCODE_UPDATED === 'true' ,
275275 MESSAGES_SET : process . env ?. WEBHOOK_EVENTS_MESSAGES_SET === 'true' ,
276276 MESSAGES_UPSERT : process . env ?. WEBHOOK_EVENTS_MESSAGES_UPSERT === 'true' ,
Original file line number Diff line number Diff line change @@ -1005,6 +1005,10 @@ export class WAStartupService {
10051005 }
10061006 }
10071007
1008+ console . log ( 'webhookGlobal.GLOBAL?.ENABLED' , webhookGlobal . GLOBAL ?. ENABLED ) ;
1009+ console . log ( 'webhookGlobal.EVENTS[we]' , webhookGlobal . EVENTS [ we ] ) ;
1010+ console . log ( 'we' , we ) ;
1011+
10081012 if ( webhookGlobal . GLOBAL ?. ENABLED ) {
10091013 if ( webhookGlobal . EVENTS [ we ] ) {
10101014 this . logger . verbose ( 'Sending data to webhook global' ) ;
You can’t perform that action at this time.
0 commit comments