mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
fix: #8474
make isPrimary and isCluster always booleans they were strings when using ./nodebb start and boolean if they were in config.json and started with node app.js
This commit is contained in:
@@ -79,7 +79,7 @@ async function runUpgrades() {
|
||||
}
|
||||
|
||||
function printStartupInfo() {
|
||||
if (nconf.get('isPrimary') === 'true') {
|
||||
if (nconf.get('isPrimary')) {
|
||||
winston.info('Initializing NodeBB v%s %s', nconf.get('version'), nconf.get('url'));
|
||||
|
||||
const host = nconf.get(nconf.get('database') + ':host');
|
||||
|
||||
Reference in New Issue
Block a user