|
@@ -118,6 +118,7 @@ class WhasAppClient {
|
|
this.client.on('disconnected', async (reason) => {
|
|
this.client.on('disconnected', async (reason) => {
|
|
console.log(`be:${this.clientId}:Client was logged out`, reason);
|
|
console.log(`be:${this.clientId}:Client was logged out`, reason);
|
|
map.delete(this.clientId);
|
|
map.delete(this.clientId);
|
|
|
|
+ duplicateMap.delete(this.clientId);
|
|
// kirim ke abi untuk update status
|
|
// kirim ke abi untuk update status
|
|
axios.post('https://nexilis.io/dashboardv2/logics/update_whatsapp_login', {
|
|
axios.post('https://nexilis.io/dashboardv2/logics/update_whatsapp_login', {
|
|
be: this.clientId,
|
|
be: this.clientId,
|