From d44d036b679d154838a262c89bb3230e68015aac Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 11 Jan 2016 17:42:23 +0200 Subject: [PATCH] up mongodb connect-mongo remove workaround --- package.json | 4 ++-- src/database/mongo.js | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 908707fcd4..ac0ec87efb 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "compression": "^1.1.0", "connect-ensure-login": "^0.1.1", "connect-flash": "^0.1.1", - "connect-mongo": "~0.8.2", + "connect-mongo": "~1.1.0", "connect-multiparty": "^2.0.0", "connect-redis": "~3.0.2", "cookie-parser": "^1.3.3", @@ -40,7 +40,7 @@ "mime": "^1.3.4", "minimist": "^1.1.1", "mkdirp": "~0.5.0", - "mongodb": "~2.0.0", + "mongodb": "~2.1.3", "morgan": "^1.3.2", "nconf": "~0.8.2", "nodebb-plugin-composer-default": "1.0.26", diff --git a/src/database/mongo.js b/src/database/mongo.js index 584992c5ae..eb54239ca2 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -106,8 +106,6 @@ module.client = db; if (!nconf.get('redis')) { - // TEMP: to fix connect-mongo, see https://github.com/kcbanner/connect-mongo/issues/161 - db.openCalled = true; module.sessionStore = new sessionStore({ db: db });