Skip to content

Commit

Permalink
Fix refreshing from enhanced tracker (mihonapp#219)
Browse files Browse the repository at this point in the history
fix refreshing from enhanced tracker

(cherry picked from commit 348b23a)
  • Loading branch information
Secozzi authored and jobobby04 committed Jan 28, 2024
1 parent 100f160 commit 6e57a62
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e57a62

Please sign in to comment.