From 4060db0daff35a20472096500a46a311cd192a0a Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 21 Sep 2020 16:55:27 -0400 Subject: [PATCH] SessionStore: Reduce unnecessary vertical space --- src/node/db/SessionStore.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/node/db/SessionStore.js b/src/node/db/SessionStore.js index 0e01b319c..9ac0bb402 100644 --- a/src/node/db/SessionStore.js +++ b/src/node/db/SessionStore.js @@ -19,7 +19,6 @@ SessionStore.prototype.__proto__ = Store.prototype; SessionStore.prototype.get = function(sid, fn) { messageLogger.debug('GET ' + sid); - db.get('sessionstorage:' + sid, (err, sess) => { if (sess) { sess.cookie.expires = 'string' == typeof sess.cookie.expires ? new Date(sess.cookie.expires) : sess.cookie.expires; @@ -36,18 +35,12 @@ SessionStore.prototype.get = function(sid, fn) { SessionStore.prototype.set = function(sid, sess, fn) { messageLogger.debug('SET ' + sid); - db.set('sessionstorage:' + sid, sess); - if (fn) { - process.nextTick(fn); - } + if (fn) process.nextTick(fn); }; SessionStore.prototype.destroy = function(sid, fn) { messageLogger.debug('DESTROY ' + sid); - db.remove('sessionstorage:' + sid); - if (fn) { - process.nextTick(fn); - } + if (fn) process.nextTick(fn); };