SessionStore: Use `const` instead of `var`

pull/4313/head
Richard Hansen 2020-09-21 16:45:25 -04:00 committed by John McLear
parent 5d2c438e3e
commit 012449101d
1 changed files with 6 additions and 5 deletions

View File

@ -7,12 +7,13 @@
* express-session, which can't actually use promises anyway.
*/
var Store = require('ep_etherpad-lite/node_modules/express-session').Store,
db = require('ep_etherpad-lite/node/db/DB').db,
log4js = require('ep_etherpad-lite/node_modules/log4js'),
messageLogger = log4js.getLogger("SessionStore");
const Store = require('ep_etherpad-lite/node_modules/express-session').Store;
const db = require('ep_etherpad-lite/node/db/DB').db;
const log4js = require('ep_etherpad-lite/node_modules/log4js');
var SessionStore = module.exports = function SessionStore() {};
const messageLogger = log4js.getLogger('SessionStore');
const SessionStore = module.exports = function SessionStore() {};
SessionStore.prototype.__proto__ = Store.prototype;