Skip to content

Commit

Permalink
add startIndex and size parameters to getCompetitiveLeaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Jul 7, 2021
1 parent cae91ff commit d005e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ class API {
});
}

getCompetitiveLeaderboard(seasonId) {
return axios.get(this.getPlayerDataServiceUrl(this.region) + `/mmr/v1/leaderboards/affinity/${this.region}/queue/competitive/season/${seasonId}`,{
getCompetitiveLeaderboard(seasonId, startIndex = 0, size = 510) {
return axios.get(this.getPlayerDataServiceUrl(this.region) + `/mmr/v1/leaderboards/affinity/${this.region}/queue/competitive/season/${seasonId}?startIndex=${startIndex}&size=${size}`,{
headers: this.generateRequestHeaders(),
});
}
Expand Down

0 comments on commit d005e55

Please sign in to comment.