Skip to content

Commit

Permalink
chore: update leaderboard fetch and default limit
Browse files Browse the repository at this point in the history
  • Loading branch information
AtelyPham committed Jan 10, 2024
1 parent f029c4d commit 7ef51a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const fetchLeaderboardData = async (

const response = await fetch(
`${BACKEND_URL}/leaderboard?${searchParams.toString()}`,
{ next: { revalidate: 60 } } // seconds
{ next: { revalidate: 3600 } } // 1 hour
);

const data = await response.json();
Expand Down
2 changes: 1 addition & 1 deletion apps/testnet-leaderboard/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const DEFAULT_SKIP = 0;
* If we want to paginate on the server side we need to adjust the backend
* to filter the Webb addresses and return the total count of participants.
**/
export const DEFAULT_LIMIT = 500;
export const DEFAULT_LIMIT = 700;

export const END_DATE = process.env['TESTNET_LEADERBOARD_END_DATE']
? new Date(process.env['TESTNET_LEADERBOARD_END_DATE'])
Expand Down

0 comments on commit 7ef51a1

Please sign in to comment.