Skip to content

Commit 727d661

Browse files
committed
fix(express): support new options of updated connect-mongo
1 parent 8e6b1a9 commit 727d661

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: app/templates/server/config/express.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ module.exports = function(app) {
3939
secret: config.secrets.session,
4040
resave: true,
4141
saveUninitialized: true,
42-
store: new mongoStore({ mongoose_connection: mongoose.connection })
42+
store: new mongoStore({
43+
mongooseConnection: mongoose.connection,
44+
db: '<%= _.slugify(_.humanize(appname)) %>'
45+
})
4346
}));
4447
<% } %>
4548
if ('production' === env) {

0 commit comments

Comments
 (0)