Skip to content

Commit

Permalink
add date[before] filter in trans sync_by_date logic (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Oct 1, 2024
1 parent 090c273 commit b4f318d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_chargebee/streams/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def sync_data(self):
if sync_by_date:
# fetching all transactions first by updated_at and then by date,
# because some failed transactions have empty values in updated_at
params = {"date[after]": bookmark_date_posix, "sort_by[asc]": "date"}
params = {"date[after]": bookmark_date_posix, "date[before]":self.START_TIMESTAP, "sort_by[asc]": "date"}
sync_by_date = False
else:
LOGGER.info("Final offset reached. Ending sync.")
Expand Down

0 comments on commit b4f318d

Please sign in to comment.