mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +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:
@@ -41,7 +41,7 @@ if (process.platform === 'win32') {
|
||||
}
|
||||
|
||||
module.exports = function (Plugins) {
|
||||
if (nconf.get('isPrimary') === 'true') {
|
||||
if (nconf.get('isPrimary')) {
|
||||
pubsub.on('plugins:toggleInstall', function (data) {
|
||||
if (data.hostname !== os.hostname()) {
|
||||
toggleInstall(data.id, data.version);
|
||||
|
||||
Reference in New Issue
Block a user