Permalink
Browse files

Merge pull request #22 from Oleg2tor/master

Fix mongoStore
  • Loading branch information...
Alex Young
Alex Young committed Apr 11, 2013
2 parents bc9a437 + d90ab93 commit 9a7a4351331ec9e3b97aad6033834853d4571b45
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.js
View
2 app.js
@@ -87,7 +87,7 @@ app.configure(function() {
app.use(express.bodyParser());
app.use(express.cookieParser());
app.use(connectTimeout({ time: 10000 }));
- app.use(express.session({ store: mongoStore(app.set('db-uri')), secret: 'topsecret' }));
+ app.use(express.session({ store: new mongoStore(app.set('db-uri')), secret: 'topsecret' }));
app.use(express.logger({ format: '\x1b[1m:method\x1b[0m \x1b[33m:url\x1b[0m :response-time ms' }))
app.use(express.methodOverride());
app.use(stylus.middleware({ src: __dirname + '/public' }));

0 comments on commit 9a7a435

Please sign in to comment.