mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-15 01:00:53 +08:00
Merge pull request #960 from notmd/fix_leaderboard_limit
Pass correct param when fetch leaderboard
This commit is contained in:
@@ -165,7 +165,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