From dae13cbc4b536b92e1ac2841a147fc3b6cb7237c Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Thu, 30 Jan 2014 04:19:33 -0500 Subject: [PATCH] connect-mongo will now use existing mongoose connection --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 34e1511e2f..ca3db8d5fb 100755 --- a/app.js +++ b/app.js @@ -63,7 +63,7 @@ app.use(express.methodOverride()); app.use(express.session({ secret: 'your secret code', store: new MongoStore({ - db: secrets.db + db: mongoose.connection.db }) })); app.use(passport.initialize());