Skip to content

Commit abc8dce

Browse files
VasfedNGPixel
andauthored
fix: Allow HA_ACTIVE: True to enable HA mode (#7493)
--------- Co-authored-by: Nicolas Giard <github@ngpixel.com>
1 parent 94d253b commit abc8dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/core/db.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ module.exports = {
222222
* Subscribe to database LISTEN / NOTIFY for multi-instances events
223223
*/
224224
async subscribeToNotifications () {
225-
const useHA = (WIKI.config.ha === true || WIKI.config.ha === 'true' || WIKI.config.ha === 1 || WIKI.config.ha === '1')
225+
const useHA = (WIKI.config.ha === true || (typeof WIKI.config.ha === 'string' && WIKI.config.ha.toLowerCase() === 'true') || WIKI.config.ha === 1 || WIKI.config.ha === '1')
226226
if (!useHA) {
227227
return
228228
} else if (WIKI.config.db.type !== 'postgres') {

0 commit comments

Comments
 (0)