From c9a324ccc6ea1e40a9e632bf7302c6cfb917a6b9 Mon Sep 17 00:00:00 2001 From: Secozzi Date: Wed, 24 Jan 2024 08:04:24 +0100 Subject: [PATCH] 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 457dbf87e6..3d1e337ffa 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