Skip to content

Commit 1fc8207

Browse files
committed
fix: correction sending s3/minio media to chatwoot and typebot
1 parent d3a83ba commit 1fc8207

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/whatsapp/controllers/instance.controller.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,9 @@ export class InstanceController {
634634

635635
this.logger.verbose('deleting instance: ' + instanceName);
636636

637+
this.waMonitor.waInstances[instanceName].sendDataWebhook(Events.INSTANCE_DELETE, {
638+
instanceName,
639+
});
637640
delete this.waMonitor.waInstances[instanceName];
638641
this.eventEmitter.emit('remove.instance', instanceName, 'inner');
639642
return { status: 'SUCCESS', error: false, response: { message: 'Instance deleted' } };

src/whatsapp/types/wa.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { AuthenticationState, WAConnectionState } from '@whiskeysockets/baileys'
44
export enum Events {
55
APPLICATION_STARTUP = 'application.startup',
66
INSTANCE_CREATE = 'instance.create',
7+
INSTANCE_DELETE = 'instance.delete',
78
QRCODE_UPDATED = 'qrcode.updated',
89
CONNECTION_UPDATE = 'connection.update',
910
STATUS_INSTANCE = 'status.instance',

0 commit comments

Comments
 (0)