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

This commit is contained in:
wktang
2016-04-27 11:52:36 -07:00
committed by Julian Lam
parent 37bd63ab75
commit 414a26fe42

View File

@@ -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(',');