fix: Fixed name of the profile status in fetchInstances

This commit is contained in:
Davidson Gomes 2023-07-14 08:42:26 -03:00
parent be492a3e3f
commit bb4490307d
2 changed files with 5 additions and 2 deletions

View File

@ -19,6 +19,7 @@
* Changed message in path / * Changed message in path /
* Test duplicate message media in groups chatwoot * Test duplicate message media in groups chatwoot
* Optimize send message from group with mentions * Optimize send message from group with mentions
* Fixed name of the profile status in fetchInstances
# 1.1.5 (2023-07-12 07:17) # 1.1.5 (2023-07-12 07:17)

View File

@ -113,7 +113,8 @@ export class WAMonitoringService {
owner: value.wuid, owner: value.wuid,
profileName: (await value.getProfileName()) || 'not loaded', profileName: (await value.getProfileName()) || 'not loaded',
profilePictureUrl: value.profilePictureUrl, profilePictureUrl: value.profilePictureUrl,
status: (await value.getProfileStatus()) || '', profileStatus: (await value.getProfileStatus()) || '',
status: value.connectionStatus.state,
apikey, apikey,
chatwoot, chatwoot,
}, },
@ -128,7 +129,8 @@ export class WAMonitoringService {
owner: value.wuid, owner: value.wuid,
profileName: (await value.getProfileName()) || 'not loaded', profileName: (await value.getProfileName()) || 'not loaded',
profilePictureUrl: value.profilePictureUrl, profilePictureUrl: value.profilePictureUrl,
status: (await value.getProfileStatus()) || '', profileStatus: (await value.getProfileStatus()) || '',
status: value.connectionStatus.state,
}, },
}); });
} }