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

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