aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-08-27 17:42:53 -0700
committerFuwn <[email protected]>2023-08-27 17:42:53 -0700
commita1536c848782a08cfb8ca4bae0a61b71ce01e976 (patch)
tree985c6104288a582ef9376881ef109140c531f6f9 /src/lib
parentfeat(manga): chapter rounding (diff)
downloaddue.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.svelte5
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}`);
};