aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/search.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/search.ts')
-rw-r--r--server/helpers/custom-validators/search.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/search.ts b/server/helpers/custom-validators/search.ts
index a8f258838..6dba5d14e 100644
--- a/server/helpers/custom-validators/search.ts
+++ b/server/helpers/custom-validators/search.ts
@@ -20,7 +20,7 @@ function isSearchTargetValid (value: SearchTargetType) {
20 20
21 const searchIndexConfig = CONFIG.SEARCH.SEARCH_INDEX 21 const searchIndexConfig = CONFIG.SEARCH.SEARCH_INDEX
22 22
23 if (value === 'local' && (!searchIndexConfig.ENABLED || !searchIndexConfig.DISABLE_LOCAL_SEARCH)) return true 23 if (value === 'local') return true
24 24
25 if (value === 'search-index' && searchIndexConfig.ENABLED) return true 25 if (value === 'search-index' && searchIndexConfig.ENABLED) return true
26 26