Default mongodb db name should be "nodebb" instead of 0 (unlike redis). (#4573)

v1.18.x
wktang 9 years ago committed by Julian Lam
parent 37bd63ab75
commit 414a26fe42

@ -38,7 +38,7 @@
{
name: "mongo:database",
description: "MongoDB database name",
'default': nconf.get('mongo:database') || 0
'default': nconf.get('mongo:database') || 'nodebb'
}
];
@ -74,7 +74,7 @@
nconf.set('mongo:port', 27017);
}
if (!nconf.get('mongo:database')) {
nconf.set('mongo:database', '0');
nconf.set('mongo:database', 'nodebb');
}
var hosts = nconf.get('mongo:host').split(',');

Loading…
Cancel
Save