From ddc18557b5de23fee2e0723b305fd8d8de62bd17 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 3 Sep 2023 18:25:03 -0700
Subject: feat(settings): move cache minutes to settings

---
 src/lib/List/Due/AnimeList.svelte | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/lib/List/Due/AnimeList.svelte')

diff --git a/src/lib/List/Due/AnimeList.svelte b/src/lib/List/Due/AnimeList.svelte
index 0cfd5994..1409730f 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -6,7 +6,6 @@
 	import { onDestroy, onMount } from 'svelte';
 	import anime from '../../../stores/anime';
 	import animeLastPrune from '../../../stores/mangaLastPrune';
-	import cacheMinutes from '../../../stores/cacheMinutes';
 	import settings from '../../../stores/settings';
 
 	export let user: AniListAuthorisation;
@@ -21,7 +20,7 @@
 		startTime = performance.now();
 		endTime = -1;
 		animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $animeLastPrune, true);
-	}, Number($cacheMinutes || 10) * 1000 * 60);
+	}, Number($settings.cacheMinutes || 10) * 1000 * 60);
 
 	onMount(async () => {
 		startTime = performance.now();
-- 
cgit v1.2.3

