pass correct param when fetch leaderboard

This commit is contained in:
notmd
2023-01-28 00:17:31 +07:00
parent 45a4b09eae
commit ce3b3c7ecc
+1 -1
View File
@@ -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 });
}
/**