Skip to content

Commit

Permalink
fix: Allow HA_ACTIVE: True to enable HA mode (#7493)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Nicolas Giard <[email protected]>
  • Loading branch information
Vasfed and NGPixel authored Jan 1, 2025
1 parent 94d253b commit abc8dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit abc8dce

Please sign in to comment.