Fixed get session by id

This commit is contained in:
Sebastian Seedorf
2020-11-23 22:57:38 +01:00
parent 8dc481b551
commit d6ceb9152e
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ function getRouter(options) {
const sessionStore = req.sessionStore;
if (sessionStore) {
const getSession = util_1.promisify(sessionStore.get);
const session = yield getSession(sessionId);
const session = yield getSession.call(sessionStore, sessionId);
if (session) {
sessionStore.createSession(req, session);
return true; // success