mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 03:56:54 -06:00
fix: include instance Id field in the instance configuration
This commit is contained in:
parent
7cc324e1c0
commit
4ba5cfceaf
@ -645,6 +645,7 @@ export class InstanceController {
|
|||||||
|
|
||||||
this.waMonitor.waInstances[instanceName].sendDataWebhook(Events.INSTANCE_DELETE, {
|
this.waMonitor.waInstances[instanceName].sendDataWebhook(Events.INSTANCE_DELETE, {
|
||||||
instanceName,
|
instanceName,
|
||||||
|
instanceId: (await this.repository.auth.find(instanceName))?.instanceId,
|
||||||
});
|
});
|
||||||
delete this.waMonitor.waInstances[instanceName];
|
delete this.waMonitor.waInstances[instanceName];
|
||||||
this.eventEmitter.emit('remove.instance', instanceName, 'inner');
|
this.eventEmitter.emit('remove.instance', instanceName, 'inner');
|
||||||
|
Loading…
Reference in New Issue
Block a user