mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +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",
|
name: "mongo:database",
|
||||||
description: "MongoDB database name",
|
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);
|
nconf.set('mongo:port', 27017);
|
||||||
}
|
}
|
||||||
if (!nconf.get('mongo:database')) {
|
if (!nconf.get('mongo:database')) {
|
||||||
nconf.set('mongo:database', '0');
|
nconf.set('mongo:database', 'nodebb');
|
||||||
}
|
}
|
||||||
|
|
||||||
var hosts = nconf.get('mongo:host').split(',');
|
var hosts = nconf.get('mongo:host').split(',');
|
||||||
|
|||||||
Reference in New Issue
Block a user