From ce3b3c7eccd8aadf288b6c67c685c5ec805a97e9 Mon Sep 17 00:00:00 2001 From: notmd Date: Sat, 28 Jan 2023 00:17:31 +0700 Subject: [PATCH] pass correct param when fetch leaderboard --- website/src/lib/oasst_api_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/lib/oasst_api_client.ts b/website/src/lib/oasst_api_client.ts index bd263400..3cc4f4ef 100644 --- a/website/src/lib/oasst_api_client.ts +++ b/website/src/lib/oasst_api_client.ts @@ -144,7 +144,7 @@ export class OasstApiClient { time_frame: LeaderboardTimeFrame, { limit = 20 }: { limit?: number } ): Promise { - return this.get(`/api/v1/leaderboards/${time_frame}`, { limit }); + return this.get(`/api/v1/leaderboards/${time_frame}`, { max_count: limit }); } /**