diff --git a/src/khoj/routers/api.py b/src/khoj/routers/api.py index d3bccb270..2ff6bab0f 100644 --- a/src/khoj/routers/api.py +++ b/src/khoj/routers/api.py @@ -608,7 +608,7 @@ def update( logger.warning(error_msg) raise HTTPException(status_code=500, detail=error_msg) try: - configure_server(state.config) + configure_server(state.config, regenerate=force, search_type=t) except Exception as e: error_msg = f"🚨 Failed to update server via API: {e}" logger.error(error_msg, exc_info=True) diff --git a/src/khoj/routers/indexer.py b/src/khoj/routers/indexer.py index 1d89ee112..a4e1c465d 100644 --- a/src/khoj/routers/indexer.py +++ b/src/khoj/routers/indexer.py @@ -1,7 +1,6 @@ # Standard Packages import logging import sys -import json from typing import Optional, Union, Dict # External Packages