We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94d253b commit abc8dceCopy full SHA for abc8dce
server/core/db.js
@@ -222,7 +222,7 @@ module.exports = {
222
* Subscribe to database LISTEN / NOTIFY for multi-instances events
223
*/
224
async subscribeToNotifications () {
225
- 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')
226
if (!useHA) {
227
return
228
} else if (WIKI.config.db.type !== 'postgres') {
0 commit comments