mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix History not being added when restoring backup (#7324)
This commit is contained in:
parent
ae88252cb1
commit
c5d84b4f24
1 changed files with 6 additions and 4 deletions
|
@ -311,10 +311,12 @@ class FullBackupManager(context: Context) : AbstractBackupManager(context) {
|
||||||
handler
|
handler
|
||||||
.awaitOneOrNull { chaptersQueries.getChapterByUrl(url) }
|
.awaitOneOrNull { chaptersQueries.getChapterByUrl(url) }
|
||||||
?.let {
|
?.let {
|
||||||
HistoryUpdate(
|
toUpdate.add(
|
||||||
chapterId = it._id,
|
HistoryUpdate(
|
||||||
readAt = Date(lastRead),
|
chapterId = it._id,
|
||||||
sessionReadDuration = 0,
|
readAt = Date(lastRead),
|
||||||
|
sessionReadDuration = 0,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue