diff --git a/app/api/api_v1/routers/search.py b/app/api/api_v1/routers/search.py index a7749c33..a5d83a32 100644 --- a/app/api/api_v1/routers/search.py +++ b/app/api/api_v1/routers/search.py @@ -185,7 +185,7 @@ def search_documents( token.decode_and_validate(db, request, app_token) # If the search request IDs are null, we want to search using the app token corpora. - if search_body.corpus_import_ids is None: + if search_body.corpus_import_ids == [] or search_body.corpus_import_ids is None: search_body.corpus_import_ids = cast(Sequence, token.allowed_corpora_ids) # For the second validation, search request corpora Ids are validated against the diff --git a/pyproject.toml b/pyproject.toml index 04fde860..11d675fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "navigator_backend" -version = "1.19.12" +version = "1.19.13" description = "" authors = ["CPR-dev-team "] packages = [{ include = "app" }, { include = "tests" }]