From abc8dce9ccb9b9f90e5681e01abce3929183f6a4 Mon Sep 17 00:00:00 2001 From: Vasily Fedoseyev Date: Wed, 1 Jan 2025 08:18:42 +0300 Subject: [PATCH] fix: Allow HA_ACTIVE: True to enable HA mode (#7493) --------- Co-authored-by: Nicolas Giard --- server/core/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/db.js b/server/core/db.js index 25f21ad3..b729282a 100644 --- a/server/core/db.js +++ b/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') {