diff options
Diffstat (limited to 'src/lib/Data')
| -rw-r--r-- | src/lib/Data/AniList/cacheHydration.ts | 4 | ||||
| -rw-r--r-- | src/lib/Data/AniList/media.ts | 2 |
2 files changed, 2 insertions, 4 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"), ]); diff --git a/src/lib/Data/AniList/media.ts b/src/lib/Data/AniList/media.ts index fee23113..211174e0 100644 --- a/src/lib/Data/AniList/media.ts +++ b/src/lib/Data/AniList/media.ts @@ -254,7 +254,7 @@ const usesSharedMediaStore = (options: CollectionOptions) => !!options.includeCompleted && !options.all && !options.includeRelations; const cacheStorageKey = (type: Type, options: CollectionOptions) => { - const baseKey = type === Type.Anime ? "anime:v2" : "manga:v2"; + const baseKey = type === Type.Anime ? "anime" : "manga"; if (usesSharedMediaStore(options)) return baseKey; |