diff --git a/server.js b/server.js index b1c8d5a..ad02ad5 100644 --- a/server.js +++ b/server.js @@ -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("")