fix(api): incorrect validation on search

This commit is contained in:
2026-03-14 17:12:02 +00:00
parent 2a00795cc2
commit 062937ec3c

View File

@@ -163,7 +163,7 @@ def scrape_data():
if name not in connector_metadata:
return jsonify({"error": "Source not supported"}), 400
if category and not connector_metadata[name]["search_enabled"]:
if search and not connector_metadata[name]["search_enabled"]:
return jsonify({"error": f"Source {name} does not support search"}), 400
if category and not connector_metadata[name]["categories_enabled"]: