From 870968a7c5461915be36307068d989151b42dfd5 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Tue, 4 Jul 2023 14:27:38 -0300 Subject: [PATCH] fix: Fixed problem when disconnecting the instance it removes the instance --- CHANGELOG.md | 1 + src/whatsapp/services/whatsapp.service.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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')); }