Skip to content

Commit 4e41e07

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

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ ENV WEBHOOK_GLOBAL_ENABLED=false
6868
ENV WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false
6969

7070
ENV WEBHOOK_EVENTS_APPLICATION_STARTUP=false
71+
ENV WEBHOOK_EVENTS_INSTANCE_CREATE=false
72+
ENV WEBHOOK_EVENTS_INSTANCE_DELETE=false
7173
ENV WEBHOOK_EVENTS_QRCODE_UPDATED=true
7274
ENV WEBHOOK_EVENTS_MESSAGES_SET=true
7375
ENV WEBHOOK_EVENTS_MESSAGES_UPSERT=true

src/config/env.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ export type Websocket = {
8080

8181
export type EventsWebhook = {
8282
APPLICATION_STARTUP: boolean;
83+
INSTANCE_CREATE: boolean;
84+
INSTANCE_DELETE: boolean;
8385
QRCODE_UPDATED: boolean;
8486
MESSAGES_SET: boolean;
8587
MESSAGES_UPSERT: boolean;
@@ -267,6 +269,8 @@ export class ConfigService {
267269
},
268270
EVENTS: {
269271
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',
270274
QRCODE_UPDATED: process.env?.WEBHOOK_EVENTS_QRCODE_UPDATED === 'true',
271275
MESSAGES_SET: process.env?.WEBHOOK_EVENTS_MESSAGES_SET === 'true',
272276
MESSAGES_UPSERT: process.env?.WEBHOOK_EVENTS_MESSAGES_UPSERT === 'true',

0 commit comments

Comments
 (0)