]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/custom-validators/search.ts
Implement remote runner jobs in server
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / search.ts
index a8f25883832c4588b122eee4a801904a5bcf136a..6dba5d14e2461877e95afd3cb28b15e56b65cb52 100644 (file)
@@ -20,7 +20,7 @@ function isSearchTargetValid (value: SearchTargetType) {
 
   const searchIndexConfig = CONFIG.SEARCH.SEARCH_INDEX
 
-  if (value === 'local' && (!searchIndexConfig.ENABLED || !searchIndexConfig.DISABLE_LOCAL_SEARCH)) return true
+  if (value === 'local') return true
 
   if (value === 'search-index' && searchIndexConfig.ENABLED) return true