Skip to content

Commit

Permalink
fix Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong-tran committed Oct 25, 2024
1 parent 4dbfa0e commit 5ae9618
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
Expand Down Expand Up @@ -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) ->
Expand Down Expand Up @@ -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) ->
Expand Down

0 comments on commit 5ae9618

Please sign in to comment.