SessionStore: Use `const` instead of `var`
parent
5d2c438e3e
commit
012449101d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue