Skip to content

Commit

Permalink
Made compatible to Express 4.x
Browse files Browse the repository at this point in the history
In Express 4.x, express.session does not exist any more, but is put into npm module express-session.
So now if you want to use it use mongoStore(expressSession)
  • Loading branch information
Anna committed Mar 3, 2014
1 parent 8e0c6a2 commit 2135988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connect-mongo.js
Expand Up @@ -27,7 +27,7 @@ var defaultOptions = {host: '127.0.0.1',
};

module.exports = function(connect) {
var Store = connect.session.Store;
var Store = connect.Store || connect.session.Store;

/**
* Initialize MongoStore with the given `options`.
Expand Down

0 comments on commit 2135988

Please sign in to comment.