From 86a40a6cb400cef10aee951cd2f19b922c55613d Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 29 Aug 2023 13:19:07 -0700
Subject: fix(manga): optimise update media

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

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

diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte
index 022c8b97..003284fc 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -91,7 +91,7 @@
 
 	const updateMedia = async (id: number, progress: number | undefined) => {
 		manga.set('');
-		mangaLastPrune.set('1');
+		await chapterDatabase.chapters.delete(id);
 
 		mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $mangaLastPrune);
 
-- 
cgit v1.2.3

