1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-08-05 22:31:31 +02:00

Fix History not being added when restoring backup ()

This commit is contained in:
Andreas
2022-06-17 23:29:07 +02:00
committed by GitHub
parent ae88252cb1
commit c5d84b4f24

@@ -311,10 +311,12 @@ class FullBackupManager(context: Context) : AbstractBackupManager(context) {
handler
.awaitOneOrNull { chaptersQueries.getChapterByUrl(url) }
?.let {
HistoryUpdate(
chapterId = it._id,
readAt = Date(lastRead),
sessionReadDuration = 0,
toUpdate.add(
HistoryUpdate(
chapterId = it._id,
readAt = Date(lastRead),
sessionReadDuration = 0,
),
)
}
}