mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-06 10:47:25 +01:00
fix Factory
This commit is contained in:
parent
9c65d5adf2
commit
555bc597ce
@ -27,6 +27,7 @@ import java.time.ZoneOffset
|
||||
|
||||
class AddTracks(
|
||||
private val insertTrack: InsertTrack,
|
||||
private val refreshTracks: RefreshTracks,
|
||||
private val getChaptersByMangaId: GetChaptersByMangaId,
|
||||
private val trackerManager: TrackerManager,
|
||||
) {
|
||||
@ -76,9 +77,7 @@ class AddTracks(
|
||||
}
|
||||
}
|
||||
|
||||
val refreshTracks = Injekt.get<RefreshTracks>()
|
||||
val context = Injekt.get<Application>()
|
||||
|
||||
refreshTracks.await(mangaId)
|
||||
.filter { it.first != null }
|
||||
.forEach { (track, e) ->
|
||||
@ -118,9 +117,7 @@ class AddTracks(
|
||||
}
|
||||
}
|
||||
|
||||
val refreshTracks = Injekt.get<RefreshTracks>()
|
||||
val context = Injekt.get<Application>()
|
||||
|
||||
refreshTracks.await(manga.id)
|
||||
.filter { it.first != null }
|
||||
.forEach { (track, e) ->
|
||||
|
Loading…
Reference in New Issue
Block a user