fix: no search caching

This commit is contained in:
TrèsAbhi committed 2023-11-14 21:00:54 -06:00
1 parent 933c468e2d
commit 171da2a194
2 files changed
+2

No files matched your search

+1
View File
@@ -746,6 +746,7 @@ export default function Page() {
values.forEach((player) => {
const playerWithTypes =
player as typeof player & { skip: false };
draft[region][season][
playerWithTypes.number - 1
] = playerWithTypes.spa_id;
@@ -35,6 +35,7 @@ export async function searchCurrentRatingsPlayers(
: `https://${regionToRegionSubdomain(
region,
)}.wotblitz.com/en/api/rating-leaderboards/search/?prefix=${encodedSearch}`,
{ cache: 'no-store' },
);
const accountList = (await response.json()) as CurrentRatingsPlayerSearch;