diff options
| author | Fuwn <[email protected]> | 2024-01-11 22:07:08 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-11 22:07:08 -0800 |
| commit | bcdaf7d9214a16473b70bd1078a047dad76ab870 (patch) | |
| tree | 44f11a4a5c0707aeb83084958c4f38a42d8994e8 /src/lib/List/Manga/MangaListTemplate.svelte | |
| parent | fix(api): un-share some caches (diff) | |
| download | due.moe-bcdaf7d9214a16473b70bd1078a047dad76ab870.tar.xz due.moe-bcdaf7d9214a16473b70bd1078a047dad76ab870.zip | |
feat(list): recache notifications
Diffstat (limited to 'src/lib/List/Manga/MangaListTemplate.svelte')
| -rw-r--r-- | src/lib/List/Manga/MangaListTemplate.svelte | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte index 97f020be..388ef543 100644 --- a/src/lib/List/Manga/MangaListTemplate.svelte +++ b/src/lib/List/Manga/MangaListTemplate.svelte @@ -14,7 +14,6 @@ import authorisedJson from '$lib/authorised.json'; import { incrementMediaProgress } from '$lib/Media/Anime/cache'; import { getNotificationsContext } from 'svelte-notifications'; - import { options } from '$lib/Notification/options'; export let user: AniListAuthorisation; export let identity: UserIdentity; @@ -36,19 +35,16 @@ const keyCacher = setInterval(() => { startTime = performance.now(); endTime = -1; - mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $lastPruneTimes.manga); - - addNotification( - options({ - heading: 'Manga', - description: 'Re-cached media lists from AniList' - }) - ); + mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $lastPruneTimes.manga, { + addNotification + }); }, $settings.cacheMinutes * 1000 * 60); onMount(async () => { startTime = performance.now(); - mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $lastPruneTimes.manga); + mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $lastPruneTimes.manga, { + addNotification + }); }); onDestroy(() => clearInterval(keyCacher)); |