From efd5c08fe774efcaf12432423423690d3ca09016 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 4 Jan 2024 00:44:20 -0800
Subject: refactor(manga): use built-in increment

---
 src/lib/List/Anime/CleanAnimeList.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/List/Anime/CleanAnimeList.svelte')

diff --git a/src/lib/List/Anime/CleanAnimeList.svelte b/src/lib/List/Anime/CleanAnimeList.svelte
index 9eb4b646..caae9b2f 100644
--- a/src/lib/List/Anime/CleanAnimeList.svelte
+++ b/src/lib/List/Anime/CleanAnimeList.svelte
@@ -3,7 +3,7 @@
 
 	import settings from '$stores/settings';
 	import type { Media } from '$lib/AniList/media';
-	import { cleanCache, updateMedia } from '$lib/Media/Anime/cache';
+	import { cleanCache, incrementMediaProgress } from '$lib/Media/Anime/cache';
 	import { totalEpisodes } from '$lib/Media/Anime/episodes';
 	import { airingTime } from '$lib/Media/Anime/Airing/time';
 	import type { AniListAuthorisation, UserIdentity } from '$lib/AniList/identity';
@@ -114,7 +114,7 @@
 									lastUpdatedMedia = anime.id;
 									pendingUpdate = anime.id;
 
-									updateMedia(anime.id, anime.mediaListEntry?.progress, () => {
+									incrementMediaProgress(anime.id, anime.mediaListEntry?.progress, () => {
 										const mediaListEntry = media.find((m) => m.id === anime.id)?.mediaListEntry;
 
 										if (mediaListEntry) mediaListEntry.progress = progress + 1;
-- 
cgit v1.2.3

