From 0a210321ea81f633482ef3da5dfbcd1891e43277 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 18 Dec 2023 15:25:18 +0100 Subject: [PATCH] Fix filter --- server/lib/elastic-search/elastic-search-instances.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/elastic-search/elastic-search-instances.ts b/server/lib/elastic-search/elastic-search-instances.ts index 194e67e..78ccc07 100644 --- a/server/lib/elastic-search/elastic-search-instances.ts +++ b/server/lib/elastic-search/elastic-search-instances.ts @@ -22,7 +22,7 @@ async function buildInstanceHosts () { if (instanceVersion < 4) { logger.info(`Do not index ${indexHost} because the major version is too low (v${instanceVersion} < v4)`) - indexHosts = indexHosts.filter(h => h === indexHost) + indexHosts = indexHosts.filter(h => h !== indexHost) } }