mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-30 11:18:46 +08:00
pass correct param when fetch leaderboard
This commit is contained in:
1 parent
45a4b09eae
commit
ce3b3c7ecc
1 file changed
+1
-1
@@ -144,7 +144,7 @@ export class OasstApiClient {
|
||||
time_frame: LeaderboardTimeFrame,
|
||||
{ limit = 20 }: { limit?: number }
|
||||
): Promise<LeaderboardReply | null> {
|
||||
return this.get<LeaderboardReply>(`/api/v1/leaderboards/${time_frame}`, { limit });
|
||||
return this.get<LeaderboardReply>(`/api/v1/leaderboards/${time_frame}`, { max_count: limit });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user