yayan 1 년 전
부모
커밋
1fd19b3347
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      whatsapp-client.js

+ 1 - 0
whatsapp-client.js

@@ -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,