File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ ENV WEBHOOK_GLOBAL_ENABLED=false
6868ENV WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false
6969
7070ENV WEBHOOK_EVENTS_APPLICATION_STARTUP=false
71+ ENV WEBHOOK_EVENTS_INSTANCE_CREATE=false
72+ ENV WEBHOOK_EVENTS_INSTANCE_DELETE=false
7173ENV WEBHOOK_EVENTS_QRCODE_UPDATED=true
7274ENV WEBHOOK_EVENTS_MESSAGES_SET=true
7375ENV WEBHOOK_EVENTS_MESSAGES_UPSERT=true
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ export type Websocket = {
8080
8181export 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' ,
You can’t perform that action at this time.
0 commit comments