Skip to content

Commit

Permalink
fix 'Events' object has no attribute 'object' (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Jun 7, 2024
1 parent 683972c commit d7f0596
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 @@ -155,7 +155,7 @@ def parse_response(self, response: requests.Response) -> Iterable[dict]:

for record in records:
# logic for incremental syncs
if (self.path == "events" and self.get_from_events) or self.get_data_from_id:
if self.name != "events" and ((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 d7f0596

Please sign in to comment.