mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 02:23:21 -05:00
Fix refreshing from enhanced tracker (#219)
fix refreshing from enhanced tracker
This commit is contained in:
parent
121b2ec829
commit
348b23a9fd
1 changed files with 3 additions and 3 deletions
|
@ -30,9 +30,9 @@ class RefreshTracks(
|
||||||
.map { (track, service) ->
|
.map { (track, service) ->
|
||||||
async {
|
async {
|
||||||
return@async try {
|
return@async try {
|
||||||
val updatedTrack = service!!.refresh(track.toDbTrack())
|
val updatedTrack = service!!.refresh(track.toDbTrack()).toDomainTrack()!!
|
||||||
insertTrack.await(updatedTrack.toDomainTrack()!!)
|
insertTrack.await(updatedTrack)
|
||||||
syncChapterProgressWithTrack.await(mangaId, track, service)
|
syncChapterProgressWithTrack.await(mangaId, updatedTrack, service)
|
||||||
null
|
null
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
service to e
|
service to e
|
||||||
|
|
Loading…
Reference in a new issue