浏览代码

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

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
Vasily Fedoseyev 5 月之前
父节点
当前提交
abc8dce9cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/core/db.js

+ 1 - 1
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') {