From d6fe2c594a170553e9b88efc6338456dfd13391c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 13 Sep 2023 01:46:20 -0700
Subject: refactor(anilist): move to api

---
 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 eec6da28..b1c7882a 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -102,7 +102,7 @@
 
 	const updateMedia = async (id: number, progress: number | undefined) => {
 		await chapterDatabase.chapters.delete(id);
-		await fetch(`/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`).then(() => {
+		await fetch(`/api/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`).then(() => {
 			mangaLists = mediaListCollection(
 				user,
 				identity,
-- 
cgit v1.2.3

