mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
SessionStore: Use const
instead of var
This commit is contained in:
parent
5d2c438e3e
commit
012449101d
1 changed files with 6 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue