diff options
| author | Fuwn <[email protected]> | 2023-08-27 17:42:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-08-27 17:42:53 -0700 |
| commit | a1536c848782a08cfb8ca4bae0a61b71ce01e976 (patch) | |
| tree | 985c6104288a582ef9376881ef109140c531f6f9 /src/lib | |
| parent | feat(manga): chapter rounding (diff) | |
| download | due.moe-a1536c848782a08cfb8ca4bae0a61b71ce01e976.tar.xz due.moe-a1536c848782a08cfb8ca4bae0a61b71ce01e976.zip | |
fix(mang): premature key prune
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/List/Due/MangaList.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte index 113d4017..549c6008 100644 --- a/src/lib/List/Due/MangaList.svelte +++ b/src/lib/List/Due/MangaList.svelte @@ -8,6 +8,7 @@ import { chapterDatabase } from '$lib/chapterDatabase'; import cacheMangaMinutes from '../../../stores/cacheMangaMinutes'; import roundDownChapters from '../../../stores/roundDownChapters'; + import mangaLastPrune from '../../../stores/mangaLastPrune'; export let user: AniListAuthorisation; export let identity: UserIdentity; @@ -19,7 +20,7 @@ onMount(async () => { startTime = performance.now(); - mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $chaptersLastPrune); + mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $mangaLastPrune); }); const cleanMedia = async (media: object[][], displayUnresolved: boolean) => { @@ -87,7 +88,7 @@ }; const updateMedia = async (id: number, progress: number | undefined) => { - mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $chaptersLastPrune); + mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $mangaLastPrune); await fetch(`/anilist/increment?id=${id}&progress=${progress! + 1}`); }; |