fix: Allow HA_ACTIVE: True to enable HA mode

This commit is contained in:
Vasily Fedoseyev 2024-12-29 14:20:27 +03:00
parent 94d253bf59
commit 883493ad80

View File

@ -222,7 +222,8 @@ 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 || WIKI.config.ha === 'true' || WIKI.config.ha === 'True' || WIKI.config.ha === 'TRUE' ||
WIKI.config.ha === 1 || WIKI.config.ha === '1')
if (!useHA) {
return
} else if (WIKI.config.db.type !== 'postgres') {