Skip to content

Commit bb44903

Browse files
committed
fix: Fixed name of the profile status in fetchInstances
1 parent be492a3 commit bb44903

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Changed message in path /
2020
* Test duplicate message media in groups chatwoot
2121
* Optimize send message from group with mentions
22+
* Fixed name of the profile status in fetchInstances
2223

2324
# 1.1.5 (2023-07-12 07:17)
2425

src/whatsapp/services/monitor.service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ export class WAMonitoringService {
113113
owner: value.wuid,
114114
profileName: (await value.getProfileName()) || 'not loaded',
115115
profilePictureUrl: value.profilePictureUrl,
116-
status: (await value.getProfileStatus()) || '',
116+
profileStatus: (await value.getProfileStatus()) || '',
117+
status: value.connectionStatus.state,
117118
apikey,
118119
chatwoot,
119120
},
@@ -128,7 +129,8 @@ export class WAMonitoringService {
128129
owner: value.wuid,
129130
profileName: (await value.getProfileName()) || 'not loaded',
130131
profilePictureUrl: value.profilePictureUrl,
131-
status: (await value.getProfileStatus()) || '',
132+
profileStatus: (await value.getProfileStatus()) || '',
133+
status: value.connectionStatus.state,
132134
},
133135
});
134136
}

0 commit comments

Comments
 (0)