mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +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:
@@ -308,7 +308,7 @@ postgresModule.createSessionStore = function (options, callback) {
|
||||
const store = new sessionStore({
|
||||
pool: db,
|
||||
ttl: meta.getSessionTTLSeconds(),
|
||||
pruneSessionInterval: nconf.get('isPrimary') === 'true' ? 60 : false,
|
||||
pruneSessionInterval: nconf.get('isPrimary') ? 60 : false,
|
||||
});
|
||||
callback(null, store);
|
||||
}
|
||||
@@ -317,7 +317,7 @@ postgresModule.createSessionStore = function (options, callback) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
if (nconf.get('isPrimary') !== 'true') {
|
||||
if (!nconf.get('isPrimary')) {
|
||||
return done(db);
|
||||
}
|
||||
db.query(`
|
||||
|
||||
Reference in New Issue
Block a user