diff --git a/CHANGELOG.md b/CHANGELOG.md index cad26f43..db0210e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Change in the way the api sent and saved the sent messages, now it goes in the messages.upsert event * Fixed cash when sending stickers via url * Improved how Redis works for instances +* Fixed problem when disconnecting the instance it removes the instance # 1.1.2 (2023-06-28 13:43) diff --git a/src/whatsapp/services/whatsapp.service.ts b/src/whatsapp/services/whatsapp.service.ts index 91329978..a87466b3 100644 --- a/src/whatsapp/services/whatsapp.service.ts +++ b/src/whatsapp/services/whatsapp.service.ts @@ -409,7 +409,6 @@ export class WAStartupService { instance: this.instance.name, status: 'removed', }); - this.eventEmitter.emit('remove.instance', this.instance.name, 'inner'); this.client?.ws?.close(); this.client.end(new Error('Close connection')); }