mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-25 18:08:40 -06:00
fix: correction sending s3/minio media to chatwoot and typebot
This commit is contained in:
parent
d3a83ba89e
commit
1fc820787a
@ -634,6 +634,9 @@ export class InstanceController {
|
|||||||
|
|
||||||
this.logger.verbose('deleting instance: ' + instanceName);
|
this.logger.verbose('deleting instance: ' + instanceName);
|
||||||
|
|
||||||
|
this.waMonitor.waInstances[instanceName].sendDataWebhook(Events.INSTANCE_DELETE, {
|
||||||
|
instanceName,
|
||||||
|
});
|
||||||
delete this.waMonitor.waInstances[instanceName];
|
delete this.waMonitor.waInstances[instanceName];
|
||||||
this.eventEmitter.emit('remove.instance', instanceName, 'inner');
|
this.eventEmitter.emit('remove.instance', instanceName, 'inner');
|
||||||
return { status: 'SUCCESS', error: false, response: { message: 'Instance deleted' } };
|
return { status: 'SUCCESS', error: false, response: { message: 'Instance deleted' } };
|
||||||
|
@ -4,6 +4,7 @@ import { AuthenticationState, WAConnectionState } from '@whiskeysockets/baileys'
|
|||||||
export enum Events {
|
export enum Events {
|
||||||
APPLICATION_STARTUP = 'application.startup',
|
APPLICATION_STARTUP = 'application.startup',
|
||||||
INSTANCE_CREATE = 'instance.create',
|
INSTANCE_CREATE = 'instance.create',
|
||||||
|
INSTANCE_DELETE = 'instance.delete',
|
||||||
QRCODE_UPDATED = 'qrcode.updated',
|
QRCODE_UPDATED = 'qrcode.updated',
|
||||||
CONNECTION_UPDATE = 'connection.update',
|
CONNECTION_UPDATE = 'connection.update',
|
||||||
STATUS_INSTANCE = 'status.instance',
|
STATUS_INSTANCE = 'status.instance',
|
||||||
|
Loading…
Reference in New Issue
Block a user