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

Commit

Permalink
Improved code to resolve engine session id
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Willering committed Apr 12, 2019
1 parent 61d7e8d commit d4eda43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function SessionHandler() {
return {
getSession: (userId) => new Promise((resolve, reject) => {
if (sessionMap.size > 0) {
resolve([...sessionMap].find(([key, val]) => key == userId)[1]);
resolve(sessionMap.get(userId));
}
else {
resolve("")
Expand Down

0 comments on commit d4eda43

Please sign in to comment.