From bb4490307d340c9185463a4d682641d6712f0c05 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Fri, 14 Jul 2023 08:42:26 -0300 Subject: [PATCH] fix: Fixed name of the profile status in fetchInstances --- CHANGELOG.md | 1 + src/whatsapp/services/monitor.service.ts | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b37de88e..6471a23f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ * Changed message in path / * Test duplicate message media in groups chatwoot * Optimize send message from group with mentions +* Fixed name of the profile status in fetchInstances # 1.1.5 (2023-07-12 07:17) diff --git a/src/whatsapp/services/monitor.service.ts b/src/whatsapp/services/monitor.service.ts index c07e9f32..462c9f96 100644 --- a/src/whatsapp/services/monitor.service.ts +++ b/src/whatsapp/services/monitor.service.ts @@ -113,7 +113,8 @@ export class WAMonitoringService { owner: value.wuid, profileName: (await value.getProfileName()) || 'not loaded', profilePictureUrl: value.profilePictureUrl, - status: (await value.getProfileStatus()) || '', + profileStatus: (await value.getProfileStatus()) || '', + status: value.connectionStatus.state, apikey, chatwoot, }, @@ -128,7 +129,8 @@ export class WAMonitoringService { owner: value.wuid, profileName: (await value.getProfileName()) || 'not loaded', profilePictureUrl: value.profilePictureUrl, - status: (await value.getProfileStatus()) || '', + profileStatus: (await value.getProfileStatus()) || '', + status: value.connectionStatus.state, }, }); }