From 727d661642441d5ee76e4fba9ebcbba134e43058 Mon Sep 17 00:00:00 2001 From: Andrew Koroluk Date: Thu, 9 Jul 2015 20:20:45 -0400 Subject: [PATCH] fix(express): support new options of updated connect-mongo --- app/templates/server/config/express.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/templates/server/config/express.js b/app/templates/server/config/express.js index 47601de59..f04098387 100644 --- a/app/templates/server/config/express.js +++ b/app/templates/server/config/express.js @@ -39,7 +39,10 @@ module.exports = function(app) { secret: config.secrets.session, resave: true, saveUninitialized: true, - store: new mongoStore({ mongoose_connection: mongoose.connection }) + store: new mongoStore({ + mongooseConnection: mongoose.connection, + db: '<%= _.slugify(_.humanize(appname)) %>' + }) })); <% } %> if ('production' === env) {