Skip to content

Commit 182dce4

Browse files
committed
fix: correction sending s3/minio media to chatwoot and typebot
1 parent 4e41e07 commit 182dce4

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ COPY ./package.json .
1414
ENV TZ=America/Sao_Paulo
1515
ENV DOCKER_ENV=true
1616

17+
ENV SERVER_TYPE=http
18+
ENV SERVER_PORT=8080
1719
ENV SERVER_URL=http://localhost:8080
1820

1921
ENV CORS_ORIGIN=*

src/config/env.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

src/whatsapp/services/whatsapp.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)