Fix suspend aggregation in read-duration interactor
Some checks failed
Forgejo Release Builder / release (push) Failing after 10m38s

This commit is contained in:
littlecodedragon 2026-05-08 00:13:40 +02:00
parent 25137641c1
commit 41f0ee6bf5

View file

@ -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))
}
}
}
}