Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sort_by[asc] param to API request to prevent records overwrite… #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

reeslo
Copy link

@reeslo reeslo commented Nov 17, 2020

Actually fetched records are sorted by newest to oldest.

Chargebee send records previously deleted, so to prevent data from being overwritten by deleted records (or other hazardous cases) its better fetch them by adding sort_by[asc] set with REPLICATION_KEY (updated_at, created_at, occured_at...)

This PR is like the same than an older PR not merged with conflict : #11

@cmerrick
Copy link

Hi @reeslo, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

@cmerrick
Copy link

You did it @reeslo!

Thank you for signing the Singer Contribution License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants