From 7ef51a18e626fa6b99e64f19a8199582af5c3615 Mon Sep 17 00:00:00 2001 From: Trung-Tin Pham <60747384+AtelyPham@users.noreply.github.com> Date: Thu, 11 Jan 2024 01:03:02 +0700 Subject: [PATCH] chore: update leaderboard fetch and default limit --- .../components/RankingTableSection/fetchLeaderboardData.ts | 2 +- apps/testnet-leaderboard/constants/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/testnet-leaderboard/components/RankingTableSection/fetchLeaderboardData.ts b/apps/testnet-leaderboard/components/RankingTableSection/fetchLeaderboardData.ts index 9f1c8fc0e5..eb669c3fac 100644 --- a/apps/testnet-leaderboard/components/RankingTableSection/fetchLeaderboardData.ts +++ b/apps/testnet-leaderboard/components/RankingTableSection/fetchLeaderboardData.ts @@ -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(); diff --git a/apps/testnet-leaderboard/constants/index.ts b/apps/testnet-leaderboard/constants/index.ts index 1df39e15d6..a40f5d6dc2 100644 --- a/apps/testnet-leaderboard/constants/index.ts +++ b/apps/testnet-leaderboard/constants/index.ts @@ -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'])