From fbad149ff2da2bb0b2fd33b2c8bc7e398f5a12b5 Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 23 Nov 2022 15:50:34 +0100 Subject: Fix DISABLE_LOCAL_SEARCH blocking request to local search API (#5411) --- server/lib/search.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'server/lib/search.ts') diff --git a/server/lib/search.ts b/server/lib/search.ts index 2f4c5eed9..b3363fbec 100644 --- a/server/lib/search.ts +++ b/server/lib/search.ts @@ -12,7 +12,6 @@ function isSearchIndexSearch (query: SearchTargetQuery) { if (searchIndexConfig.ENABLED !== true) return false - if (searchIndexConfig.DISABLE_LOCAL_SEARCH) return true if (searchIndexConfig.IS_DEFAULT_SEARCH && !query.searchTarget) return true return false -- cgit v1.2.3