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/Anime/DueAnimeList.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/Anime/DueAnimeList.svelte')
| -rw-r--r-- | src/lib/List/Anime/DueAnimeList.svelte | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/lib/List/Anime/DueAnimeList.svelte b/src/lib/List/Anime/DueAnimeList.svelte index 750d773b..f4439c8b 100644 --- a/src/lib/List/Anime/DueAnimeList.svelte +++ b/src/lib/List/Anime/DueAnimeList.svelte @@ -8,7 +8,6 @@ import AnimeList from './AnimeListTemplate.svelte'; import type { SubsPlease } from '$lib/Media/Anime/Airing/Subtitled/subsPlease'; import { injectAiringTime } from '$lib/Media/Anime/Airing/Subtitled/match'; - import { options } from '$lib/Notification/options'; import { getNotificationsContext } from 'svelte-notifications'; export let user: AniListAuthorisation; @@ -23,20 +22,16 @@ startTime = performance.now(); endTime = -1; animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $lastPruneTimes.anime, { - forcePrune: true + forcePrune: true, + addNotification }); - - addNotification( - options({ - heading: 'Anime', - description: 'Re-cached from AniList' - }) - ); }, $settings.cacheMinutes * 1000 * 60); onMount(async () => { startTime = performance.now(); - animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $lastPruneTimes.anime); + animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $lastPruneTimes.anime, { + addNotification + }); }); onDestroy(() => clearInterval(keyCacher)); |