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, }, }); }