mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: no search caching
This commit is contained in:
1 parent
933c468e2d
commit
171da2a194
2 files changed
+2
No files matched your search
@@ -746,6 +746,7 @@ export default function Page() {
|
|||||||
values.forEach((player) => {
|
values.forEach((player) => {
|
||||||
const playerWithTypes =
|
const playerWithTypes =
|
||||||
player as typeof player & { skip: false };
|
player as typeof player & { skip: false };
|
||||||
|
|
||||||
draft[region][season][
|
draft[region][season][
|
||||||
playerWithTypes.number - 1
|
playerWithTypes.number - 1
|
||||||
] = playerWithTypes.spa_id;
|
] = playerWithTypes.spa_id;
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export async function searchCurrentRatingsPlayers(
|
|||||||
: `https://${regionToRegionSubdomain(
|
: `https://${regionToRegionSubdomain(
|
||||||
region,
|
region,
|
||||||
)}.wotblitz.com/en/api/rating-leaderboards/search/?prefix=${encodedSearch}`,
|
)}.wotblitz.com/en/api/rating-leaderboards/search/?prefix=${encodedSearch}`,
|
||||||
|
{ cache: 'no-store' },
|
||||||
);
|
);
|
||||||
const accountList = (await response.json()) as CurrentRatingsPlayerSearch;
|
const accountList = (await response.json()) as CurrentRatingsPlayerSearch;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user