From dc6f74dec55d3fbfc1c55f43571be679798fa2cd Mon Sep 17 00:00:00 2001 From: Ilan Biala Date: Sat, 28 Mar 2015 19:35:54 -0400 Subject: [PATCH] Update connect-mongo to support Mongoose 4.0.0 --- config/lib/express.js | 2 +- config/lib/socket.io.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/lib/express.js b/config/lib/express.js index 2ad68145b2..b01eb9abf1 100644 --- a/config/lib/express.js +++ b/config/lib/express.js @@ -113,7 +113,7 @@ module.exports.initSession = function (app, db) { resave: true, secret: config.sessionSecret, store: new MongoStore({ - db: db.connection.db, + mongooseConnection: db.connection, collection: config.sessionCollection }) })); diff --git a/config/lib/socket.io.js b/config/lib/socket.io.js index cddbb34f22..3312bb4ad4 100644 --- a/config/lib/socket.io.js +++ b/config/lib/socket.io.js @@ -20,7 +20,7 @@ module.exports = function(app, db) { // Create a MongoDB storage object var mongoStore = new MongoStore({ - db: db.connection.db, + mongooseConnection: db.connection, collection: config.sessionCollection }); diff --git a/package.json b/package.json index 06e227cd5b..aabab5ab59 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "method-override": "~2.3.0", "morgan": "~1.5.2", "multer": "0.1.6", - "connect-mongo": "~0.4.1", + "connect-mongo": "~0.8.0", "connect-flash": "~0.1.1", "helmet": "~0.7.1", "consolidate": "~0.11.0",