Improve history migration
This commit is contained in:
@@ -10,4 +10,10 @@ class UpsertHistory(
|
||||
suspend fun await(historyUpdate: HistoryUpdate) {
|
||||
historyRepository.upsertHistory(historyUpdate)
|
||||
}
|
||||
|
||||
// SY -->
|
||||
suspend fun awaitAll(historyUpdates: List<HistoryUpdate>) {
|
||||
historyRepository.upsertHistory(historyUpdates)
|
||||
}
|
||||
// SY <--
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@ interface HistoryRepository {
|
||||
suspend fun upsertHistory(historyUpdate: HistoryUpdate)
|
||||
|
||||
// SY -->
|
||||
suspend fun upsertHistory(historyUpdates: List<HistoryUpdate>)
|
||||
|
||||
suspend fun getByMangaId(mangaId: Long): List<History>
|
||||
// SY <--
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user