SessionStore: Use `const` instead of `var`
parent
5d2c438e3e
commit
012449101d
|
@ -7,12 +7,13 @@
|
||||||
* express-session, which can't actually use promises anyway.
|
* express-session, which can't actually use promises anyway.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Store = require('ep_etherpad-lite/node_modules/express-session').Store,
|
const Store = require('ep_etherpad-lite/node_modules/express-session').Store;
|
||||||
db = require('ep_etherpad-lite/node/db/DB').db,
|
const db = require('ep_etherpad-lite/node/db/DB').db;
|
||||||
log4js = require('ep_etherpad-lite/node_modules/log4js'),
|
const log4js = require('ep_etherpad-lite/node_modules/log4js');
|
||||||
messageLogger = log4js.getLogger("SessionStore");
|
|
||||||
|
|
||||||
var SessionStore = module.exports = function SessionStore() {};
|
const messageLogger = log4js.getLogger('SessionStore');
|
||||||
|
|
||||||
|
const SessionStore = module.exports = function SessionStore() {};
|
||||||
|
|
||||||
SessionStore.prototype.__proto__ = Store.prototype;
|
SessionStore.prototype.__proto__ = Store.prototype;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue