@cocreate/users 1.37.3 → 1.37.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/server.js +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.37.4](https://github.com/CoCreate-app/CoCreate-users/compare/v1.37.3...v1.37.4) (2024-07-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* checkSession send ([2b3810f](https://github.com/CoCreate-app/CoCreate-users/commit/2b3810fd31bbd1e4fbd8f7072f5e36c8b13abac4))
|
|
7
|
+
|
|
1
8
|
## [1.37.3](https://github.com/CoCreate-app/CoCreate-users/compare/v1.37.2...v1.37.3) (2024-06-30)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -147,12 +147,14 @@ class CoCreateUser {
|
|
|
147
147
|
|
|
148
148
|
async checkSession(data) {
|
|
149
149
|
try {
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
data.method = 'updateUserStatus'
|
|
151
|
+
|
|
152
|
+
if (!data.socket.user_id)
|
|
152
153
|
data.userStatus = 'off'
|
|
154
|
+
else
|
|
155
|
+
data.userStatus = 'on'
|
|
153
156
|
|
|
154
|
-
|
|
155
|
-
}
|
|
157
|
+
this.wsManager.send(data)
|
|
156
158
|
} catch (error) {
|
|
157
159
|
console.log('checkSession error')
|
|
158
160
|
}
|