Skip to content

Commit 870968a

Browse files
committed
fix: Fixed problem when disconnecting the instance it removes the instance
1 parent c4f39ab commit 870968a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Change in the way the api sent and saved the sent messages, now it goes in the messages.upsert event
88
* Fixed cash when sending stickers via url
99
* Improved how Redis works for instances
10+
* Fixed problem when disconnecting the instance it removes the instance
1011

1112
# 1.1.2 (2023-06-28 13:43)
1213

src/whatsapp/services/whatsapp.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ export class WAStartupService {
409409
instance: this.instance.name,
410410
status: 'removed',
411411
});
412-
this.eventEmitter.emit('remove.instance', this.instance.name, 'inner');
413412
this.client?.ws?.close();
414413
this.client.end(new Error('Close connection'));
415414
}

0 commit comments

Comments
 (0)