File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
data/src/main/java/tachiyomi/data/history Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -58,21 +58,23 @@ class HistoryRepositoryImpl(
5858 false
5959 }
6060 }
61+
6162 override suspend fun upsertHistory (historyUpdate : HistoryUpdate ) {
6263 partialUpdate(historyUpdate)
6364 }
6465
6566 override suspend fun upsertAllHistory (historyUpdate : List <HistoryUpdate >) {
6667 partialUpdate(* historyUpdate.toTypedArray())
6768 }
69+
6870 private suspend fun partialUpdate (vararg historyUpdates : HistoryUpdate ) {
6971 try {
7072 handler.await(inTransaction = true ) {
7173 historyUpdates.forEach { historyUpdate ->
7274 historyQueries.upsert(
7375 chapterId = historyUpdate.chapterId,
7476 readAt = historyUpdate.readAt,
75- time_read = historyUpdate.sessionReadDuration
77+ time_read = historyUpdate.sessionReadDuration,
7678 )
7779 }
7880 }
You can’t perform that action at this time.
0 commit comments