Skip to content

Commit

Permalink
Increase wait time between Patreon API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Jan 28, 2025
1 parent c19fcde commit 59cb14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/fetchPatrons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ const fetchPatrons = async (): Promise<LatestPatrons> => {
});

if (res.links?.next) {
// Wait 3 seconds between API calls to prevent API limits being hit in CI/CD
await new Promise((resolve) => setTimeout(resolve, 3000));
// Wait 5 seconds between API calls to prevent API limits being hit in CI/CD
await new Promise((resolve) => setTimeout(resolve, 5000));
await fetchPage(res.links.next);
}
};
Expand Down

0 comments on commit 59cb14d

Please sign in to comment.