Skip to content

Commit

Permalink
fix: checkSession send
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jul 5, 2024
1 parent 7b06c33 commit 2b3810f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,14 @@ class CoCreateUser {

async checkSession(data) {
try {
if (!data.socket.user_id) {
data.method = 'updateUserStatus'
data.method = 'updateUserStatus'

if (!data.socket.user_id)
data.userStatus = 'off'
else
data.userStatus = 'on'

this.wsManager.send(data)
}
this.wsManager.send(data)
} catch (error) {
console.log('checkSession error')
}
Expand Down

0 comments on commit 2b3810f

Please sign in to comment.