Limit updates to 250 most recent chapters

Still limits to things within the past 3 months though.

Closes #9554
This commit is contained in:
arkon
2023-05-28 16:48:22 -04:00
parent f48f212001
commit 4c65c2311e
4 changed files with 8 additions and 9 deletions

View File

@@ -19,9 +19,9 @@ class UpdatesRepositoryImpl(
}
}
override fun subscribeAll(after: Long): Flow<List<UpdatesWithRelations>> {
override fun subscribeAll(after: Long, limit: Long): Flow<List<UpdatesWithRelations>> {
return databaseHandler.subscribeToList {
updatesViewQueries.updates(after, updateWithRelationMapper)
updatesViewQueries.getRecentUpdates(after, limit, updateWithRelationMapper)
}
}