From a52241f9b07780fdfffab3b1789ce935e982f510 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 8 Oct 2023 19:13:48 -0700
Subject: fix(manga): block on prune

---
 src/lib/List/Template/MangaListTemplate.svelte | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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

diff --git a/src/lib/List/Template/MangaListTemplate.svelte b/src/lib/List/Template/MangaListTemplate.svelte
index 5ac5ada2..9823f97f 100644
--- a/src/lib/List/Template/MangaListTemplate.svelte
+++ b/src/lib/List/Template/MangaListTemplate.svelte
@@ -54,7 +54,9 @@
 				const ids = unresolved.map((m) => m.id);
 
 				lastPruneTimes.setKey('chapters', currentDate.getTime());
-				await chapterDatabase.chapters.bulkDelete(ids);
+				(async () => {
+					await chapterDatabase.chapters.bulkDelete(ids);
+				})();
 			}
 		}
 
-- 
cgit v1.2.3

