Fix history order

pull/1/head
Koitharu 6 years ago
parent c60683eb42
commit 7478c8c106

@ -17,7 +17,7 @@ class HistoryRepository : KoinComponent {
private val db: MangaDatabase by inject()
suspend fun getList(offset: Int): List<Manga> {
val entities = db.historyDao().findAll(offset, 20, "updated_at")
val entities = db.historyDao().findAll(offset, 20, "updated_at DESC")
return entities.map { it.manga.toManga(it.tags.map(TagEntity::toMangaTag).toSet()) }
}

Loading…
Cancel
Save