diff options
Diffstat (limited to 'src/lib/Data/AniList/cacheHydration.ts')
| -rw-r--r-- | src/lib/Data/AniList/cacheHydration.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/Data/AniList/cacheHydration.ts b/src/lib/Data/AniList/cacheHydration.ts index ac3b4d72..434d2a82 100644 --- a/src/lib/Data/AniList/cacheHydration.ts +++ b/src/lib/Data/AniList/cacheHydration.ts @@ -6,8 +6,6 @@ import localforage from "localforage"; type MediaCacheKind = "anime" | "manga"; -const cacheStorageKey = (kind: MediaCacheKind) => `${kind}:v2`; - interface StoredLastPruneTimes { anime: number; chapters: number; @@ -34,7 +32,7 @@ export const hydrateMediaListCache = (kind: MediaCacheKind) => { const promise = (async () => { const [cache, pruneTimes] = await Promise.all([ - localforage.getItem<string>(cacheStorageKey(kind)), + localforage.getItem<string>(kind), localforage.getItem<StoredLastPruneTimes>("lastPruneTimes"), ]); |