From 24efc4f1ec7c8f537653cc7da16fcafe480d94d0 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 10 Dec 2023 02:41:17 -0800
Subject: feat(manga): lighter rate-limits

---
 src/lib/List/Manga/MangaListTemplate.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/List/Manga/MangaListTemplate.svelte')

diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte
index c6ea8b7d..54009e50 100644
--- a/src/lib/List/Manga/MangaListTemplate.svelte
+++ b/src/lib/List/Manga/MangaListTemplate.svelte
@@ -50,7 +50,7 @@
 
 			if (
 				(currentDate.getTime() - $lastPruneTimes.chapters) / 1000 / 60 >
-				$settings.cacheMangaMinutes
+				Math.max($settings.cacheMangaMinutes, 5)
 			) {
 				const unresolved = await chapterDatabase.chapters.where('chapters').equals(-1).toArray();
 				const ids = unresolved.map((m) => m.id);
-- 
cgit v1.2.3

