Skip to content

prevent unnecessary usage of getAffiliateSites method#10

Merged
stixx merged 2 commits intostixx:masterfrom
aradhell:master
Nov 17, 2022
Merged

prevent unnecessary usage of getAffiliateSites method#10
stixx merged 2 commits intostixx:masterfrom
aradhell:master

Conversation

@aradhell
Copy link
Copy Markdown
Contributor

@aradhell aradhell commented Oct 24, 2022

Hello @lvdhoorn @stixx ,

I changed getTransactions method to accept affiliateSites array to prevent multiple call to getAffiliateSites endpoint while processing multiple dates.

Motivation for this change is recent change on Tradetracker API and rate limit for this endpoint. It is being exhausted easily.

Change is also backward compatible thanks to default value of the new parameter.

Copy link
Copy Markdown
Owner

@stixx stixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect change, thank you!

@stixx stixx merged commit 675e9ea into stixx:master Nov 17, 2022
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.

2 participants