Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Update connect-mongo to support Mongoose 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanbiala committed Mar 28, 2015
1 parent 1fa147e commit dc6f74d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/lib/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}));
Expand Down
2 changes: 1 addition & 1 deletion config/lib/socket.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dc6f74d

Please sign in to comment.