Fix suspend aggregation in read-duration interactor
Some checks failed
Forgejo Release Builder / release (push) Failing after 10m38s
Some checks failed
Forgejo Release Builder / release (push) Failing after 10m38s
This commit is contained in:
parent
25137641c1
commit
41f0ee6bf5
1 changed files with 5 additions and 1 deletions
|
|
@ -11,6 +11,10 @@ class GetReadDurationEntriesByMangaIds(
|
|||
}
|
||||
|
||||
suspend fun await(mangaIds: List<Long>): List<History> {
|
||||
return mangaIds.flatMap(::await)
|
||||
return buildList {
|
||||
mangaIds.forEach { mangaId ->
|
||||
addAll(await(mangaId))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue