Clean up history restoring

(cherry picked from commit 5fec881387d1d4b5dda19b4a58e103bf60ef4a59)
This commit is contained in:
arkon
2023-12-16 11:14:53 -05:00
committed by Jobobby04
parent dd40dbe171
commit 98900bc960
3 changed files with 49 additions and 38 deletions
@@ -7,4 +7,13 @@ data class History(
val chapterId: Long,
val readAt: Date?,
val readDuration: Long,
)
) {
companion object {
fun create() = History(
id = -1L,
chapterId = -1L,
readAt = null,
readDuration = -1L,
)
}
}