Skip to content

Commit d43d800

Browse files
committed
Fix incorrect passing of contactmomenten API client to pagination_helper
1 parent 38e38e2 commit d43d800

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/open_inwoner/openklant/services.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def _retrieve_klanten_for_bsn(self, user_bsn: str) -> list[Klant]:
206206
params={"subjectNatuurlijkPersoon__inpBsn": user_bsn},
207207
)
208208
data = get_json_response(response)
209-
all_data = list(pagination_helper(self, data))
209+
all_data = list(pagination_helper(self.client, data))
210210
except (RequestException, ClientError) as e:
211211
logger.exception("exception while making request", exc_info=e)
212212
return []
@@ -231,7 +231,7 @@ def _retrieve_klanten_for_kvk_or_rsin(
231231
params=params,
232232
)
233233
data = get_json_response(response)
234-
all_data = list(pagination_helper(self, data))
234+
all_data = list(pagination_helper(self.client, data))
235235
except (RequestException, ClientError) as e:
236236
logger.exception("exception while making request", exc_info=e)
237237
return []
@@ -508,7 +508,7 @@ def retrieve_objectcontactmomenten_for_zaak(
508508
"objectcontactmomenten", params={"object": zaak.url}
509509
)
510510
data = get_json_response(response)
511-
all_data = list(pagination_helper(self, data))
511+
all_data = list(pagination_helper(self.client, data))
512512
except (RequestException, ClientError) as exc:
513513
logger.exception("exception while making request", exc_info=exc)
514514
return []
@@ -538,7 +538,7 @@ def retrieve_objectcontactmomenten_for_contactmoment(
538538
"objectcontactmomenten", params={"contactmoment": contactmoment.url}
539539
)
540540
data = get_json_response(response)
541-
all_data = list(pagination_helper(self, data))
541+
all_data = list(pagination_helper(self.client, data))
542542
except (RequestException, ClientError) as e:
543543
logger.exception("exception while making request", exc_info=e)
544544
return []
@@ -559,7 +559,7 @@ def retrieve_klantcontactmomenten_for_klant(
559559
params={"klant": klant.url},
560560
)
561561
data = get_json_response(response)
562-
all_data = list(pagination_helper(self, data))
562+
all_data = list(pagination_helper(self.client, data))
563563
except (RequestException, ClientError) as e:
564564
logger.exception("exception while making request", exc_info=e)
565565
return []

0 commit comments

Comments
 (0)