diff --git a/src/open_inwoner/cms/cases/views/services.py b/src/open_inwoner/cms/cases/views/services.py index d9ae67e08..b37f867e6 100644 --- a/src/open_inwoner/cms/cases/views/services.py +++ b/src/open_inwoner/cms/cases/views/services.py @@ -192,7 +192,7 @@ def get_cases(self) -> list[ZaakWithApiGroup]: def _get_cases_for_api_group(self, group: ZGWApiGroupConfig) -> list[Zaak]: raw_cases = group.zaken_client.fetch_cases( - **get_user_fetch_parameters(self.request) + **get_user_fetch_parameters(self.request), ) resolved_cases = self.resolve_cases(raw_cases, group) diff --git a/src/open_inwoner/openzaak/clients.py b/src/open_inwoner/openzaak/clients.py index 68fe7a30b..97bec9308 100644 --- a/src/open_inwoner/openzaak/clients.py +++ b/src/open_inwoner/openzaak/clients.py @@ -65,7 +65,7 @@ def fetch_cases( user_bsn: str | None = None, user_kvk: str | None = None, user_rsin: str | None = None, - max_requests: int = 4, + max_requests: int | None = None, identificatie: str | None = None, vestigingsnummer: str | None = None, ): @@ -101,7 +101,7 @@ def fetch_cases( def fetch_cases_by_bsn( self, user_bsn: str, - max_requests: int | None = 4, + max_requests: int | None = None, identificatie: str | None = None, ) -> list[Zaak]: """ @@ -149,7 +149,7 @@ def fetch_cases_by_bsn( def fetch_cases_for_company( self, kvk_or_rsin: str | None = None, - max_requests: int | None = 4, + max_requests: int | None = None, zaak_identificatie: str | None = None, vestigingsnummer: str | None = None, ) -> list[Zaak]: @@ -684,7 +684,7 @@ def fetch_open_submissions( user_bsn: str | None = None, user_kvk: str | None = None, vestigingsnummer: str | None = None, - max_requests: int = 4, + max_requests: int | None = None, **kwargs, ) -> list[OpenSubmission]: if user_bsn and (user_kvk or vestigingsnummer):