mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: use non-caching apis for ratings command
This commit is contained in:
1 parent
4b5e0d1c1c
commit
14710b5218
4 files changed
+35
-38
No files matched your search
@@ -137,15 +137,12 @@ export default function Page() {
|
||||
await Promise.all(
|
||||
range(0, 5).map(async (league: number) => {
|
||||
const data = await getRatingsLeague(region, league);
|
||||
leaguePositionCache.current[region][league] =
|
||||
data.result[0].number - 1;
|
||||
leaguePositionCache.current[region][league] = data[0].number - 1;
|
||||
|
||||
return data;
|
||||
}),
|
||||
)
|
||||
)
|
||||
.map(({ result }) => result)
|
||||
.flat();
|
||||
).flat();
|
||||
|
||||
useLeaderboardCache.setState(
|
||||
produce((draft: LeaderboardCache) => {
|
||||
|
||||
Reference in new issue
Block a user