From 348b23a9fd833d9040cfbdd60b11f9d5ce6e5fb7 Mon Sep 17 00:00:00 2001 From: Secozzi <49240133+Secozzi@users.noreply.github.com> Date: Wed, 24 Jan 2024 13:16:28 +0000 Subject: [PATCH] Fix refreshing from enhanced tracker (#219) fix refreshing from enhanced tracker --- .../java/eu/kanade/domain/track/interactor/RefreshTracks.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/domain/track/interactor/RefreshTracks.kt b/app/src/main/java/eu/kanade/domain/track/interactor/RefreshTracks.kt index 457dbf87e..3d1e337ff 100644 --- a/app/src/main/java/eu/kanade/domain/track/interactor/RefreshTracks.kt +++ b/app/src/main/java/eu/kanade/domain/track/interactor/RefreshTracks.kt @@ -30,9 +30,9 @@ class RefreshTracks( .map { (track, service) -> async { return@async try { - val updatedTrack = service!!.refresh(track.toDbTrack()) - insertTrack.await(updatedTrack.toDomainTrack()!!) - syncChapterProgressWithTrack.await(mangaId, track, service) + val updatedTrack = service!!.refresh(track.toDbTrack()).toDomainTrack()!! + insertTrack.await(updatedTrack) + syncChapterProgressWithTrack.await(mangaId, updatedTrack, service) null } catch (e: Throwable) { service to e