Unverified Commit abc8dce9 authored by Vasily Fedoseyev's avatar Vasily Fedoseyev Committed by GitHub

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

--------- Co-authored-by: 's avatarNicolas Giard <github@ngpixel.com>
parent 94d253bf
...@@ -222,7 +222,7 @@ module.exports = { ...@@ -222,7 +222,7 @@ module.exports = {
* Subscribe to database LISTEN / NOTIFY for multi-instances events * Subscribe to database LISTEN / NOTIFY for multi-instances events
*/ */
async subscribeToNotifications () { 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) { if (!useHA) {
return return
} else if (WIKI.config.db.type !== 'postgres') { } else if (WIKI.config.db.type !== 'postgres') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment