Browse Source

fix: Allow HA_ACTIVE: True to enable HA mode (#7493)

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
pull/5233/merge
Vasily Fedoseyev 1 month ago
committed by GitHub
parent
commit
abc8dce9cc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. 2
      server/core/db.js

2
server/core/db.js

@ -222,7 +222,7 @@ module.exports = {
* Subscribe to database LISTEN / NOTIFY for multi-instances events
*/
async subscribeToNotifications () {
const useHA = (WIKI.config.ha === true || WIKI.config.ha === 'true' || WIKI.config.ha === 1 || WIKI.config.ha === '1')
const useHA = (WIKI.config.ha === true || (typeof WIKI.config.ha === 'string' && WIKI.config.ha.toLowerCase() === 'true') || WIKI.config.ha === 1 || WIKI.config.ha === '1')
if (!useHA) {
return
} else if (WIKI.config.db.type !== 'postgres') {

Loading…
Cancel
Save