Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
server hasUser check bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
itsfuad committed Nov 1, 2023
1 parent 96a3efd commit d3d9e68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "poketab_messenger",
"version": "5.1.0",
"version": "5.1.1",
"description": "Realtime messaging application",
"main": "server/server.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion server/database/schema/Key.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class Key {
return users;
}
hasUser(uid) {
return this.users[uid] !== null;
return this.users[uid] != null;
}
isEmpty() {
return this.activeUsers === 0;
Expand Down
2 changes: 1 addition & 1 deletion server/database/schema/Key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Key{
}

hasUser(uid: string): boolean{
return this.users[uid] !== null;
return this.users[uid] != null;
}

isEmpty(): boolean{
Expand Down

0 comments on commit d3d9e68

Please sign in to comment.