Skip to content

Commit

Permalink
fix(express): support new options of updated connect-mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
Awk34 committed Jul 10, 2015
1 parent 8e6b1a9 commit 727d661
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/templates/server/config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 727d661

Please sign in to comment.