mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
Default mongodb db name should be "nodebb" instead of 0 (unlike redis). (#4573)
This commit is contained in:
@@ -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(',');
|
||||
|
||||
Reference in New Issue
Block a user