mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 19:49:50 +01:00
fix: rating leaderboard
This commit is contained in:
1 parent
5bf6a14cff
commit
edf434ed95
1 file changed
+1
-3
@@ -4,7 +4,6 @@ import {
|
|||||||
getArchivedLatestSeasonNumber,
|
getArchivedLatestSeasonNumber,
|
||||||
getArchivedRatingLeaderboard,
|
getArchivedRatingLeaderboard,
|
||||||
getClanAccountInfo,
|
getClanAccountInfo,
|
||||||
getLeagueFromScore,
|
|
||||||
getRatingInfo,
|
getRatingInfo,
|
||||||
getRatingLeague,
|
getRatingLeague,
|
||||||
getRatingNeighbors,
|
getRatingNeighbors,
|
||||||
@@ -271,8 +270,7 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
const score = result.find(({ id }) => id === playerId)!.score;
|
const leagueInfo = LEAGUES[leagueIndex];
|
||||||
const leagueInfo = getLeagueFromScore(score);
|
|
||||||
archivedLeaderboard = await getArchivedRatingLeaderboard(
|
archivedLeaderboard = await getArchivedRatingLeaderboard(
|
||||||
region,
|
region,
|
||||||
season,
|
season,
|
||||||
|
|||||||
Reference in new issue
Block a user