Skip to content

Commit 9e10734

Browse files
committed
Format
1 parent 2e7c854 commit 9e10734

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

data/src/main/java/tachiyomi/data/history/HistoryRepositoryImpl.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)