Skip to content

Commit

Permalink
fix conditional for stream events and incrementals (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Mar 28, 2024
1 parent 3c31efa commit ba640a1
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 @@ -156,7 +156,7 @@ def parse_response(self, response: requests.Response) -> Iterable[dict]:

for record in records:
# logic for incremental syncs
if self.path == "events" or self.get_data_from_id:
if (self.path == "events" and self.get_from_events) or self.get_data_from_id:
event_date = record["created"]
if self.name not in ["plans", "products"]:
record = record["data"]["object"]
Expand Down

0 comments on commit ba640a1

Please sign in to comment.