Skip to content

Commit

Permalink
Fix issue with lines not paginating properly
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyyid committed May 24, 2024
1 parent 1e8b4ff commit ce290fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_stripe/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ def parse_response(self, response: requests.Response) -> Iterable[dict]:
lines_response = decorated_request(
self.prepare_request_lines(url, params), {}
)
next_page_token = self.get_next_page_token_lines(lines_response)
response_obj = lines_response.json()
next_page_token = self.get_next_page_token_lines(response_obj)
response_data = response_obj.get("data", [])
lines.extend(response_data)
record["lines"]["data"] = lines
Expand Down

0 comments on commit ce290fb

Please sign in to comment.