mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-09 21:50:30 +01:00
Update connect-mongo to support Mongoose 4.0.0
This commit is contained in:
@@ -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
|
||||
})
|
||||
}));
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user