diff options
| author | Fuwn <[email protected]> | 2023-09-13 02:02:14 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-13 02:02:14 -0700 |
| commit | 475c198edf1f64d18a80bb8c912d743dcabe01f3 (patch) | |
| tree | 8610f9d08f0405f97a943d86ba8f4bf0fe30d2f3 /src/lib | |
| parent | refactor(auth): move to single path (diff) | |
| download | due.moe-475c198edf1f64d18a80bb8c912d743dcabe01f3.tar.xz due.moe-475c198edf1f64d18a80bb8c912d743dcabe01f3.zip | |
refactor(anilist): move to single path
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/List/Due/MangaList.svelte | 2 | ||||
| -rw-r--r-- | src/lib/anime.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte index b1c7882a..836899fc 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(`/api/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, diff --git a/src/lib/anime.ts b/src/lib/anime.ts index 3b3b178c..aafc2560 100644 --- a/src/lib/anime.ts +++ b/src/lib/anime.ts @@ -16,7 +16,7 @@ export const cleanCache = (user: AniListAuthorisation, identity: UserIdentity) = }; export const updateMedia = (id: number, progress: number | undefined, callback: () => void) => { - fetch(`/api/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`).then(callback); + fetch(`/api/anilist-increment?id=${id}&progress=${(progress || 0) + 1}`).then(callback); }; export const totalEpisodes = (anime: Media) => { |