Merge pull request #960 from notmd/fix_leaderboard_limit

Pass correct param when fetch leaderboard
This commit is contained in:
AbdBarho
2023-01-27 21:20:11 +01:00
committed by GitHub
+1 -1
View File
@@ -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 });
}
/**