Skip to content

Commit

Permalink
Skip syncing subobjects when encountering deleted events (#41)
Browse files Browse the repository at this point in the history
* skip syncing subobjects when encountering deleted events

* use .
  • Loading branch information
Kyle Allan authored Aug 29, 2019
1 parent 7b4b936 commit 1c64ccd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tap_stripe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,10 @@ def sync_event_updates(stream_name):
time_extracted=extraction_time)
Context.updated_counts[stream_name] += 1

# Delete events should be synced but not their subobjects
if events_obj.get('type', '').endswith('.deleted'):
continue

if sub_stream_name and Context.is_selected(sub_stream_name):
if event_resource_obj:
sync_sub_stream(sub_stream_name,
Expand Down

0 comments on commit 1c64ccd

Please sign in to comment.