Update connect-mongo to support Mongoose 4.0.0

This commit is contained in:
Ilan Biala
2015-03-28 19:35:54 -04:00
parent 1fa147e372
commit dc6f74dec5
3 changed files with 3 additions and 3 deletions

View File

@@ -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
})
}));

View File

@@ -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
});

View File

@@ -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",