Set start date when tracker is bound if any chapters are already read

Closes #6734

(cherry picked from commit 818471b7e137a15dce48352f686db24b117414ea)
This commit is contained in:
arkon
2023-07-16 15:01:04 -04:00
committed by Jobobby04
parent d95d4a87cd
commit 1da31e622f
7 changed files with 47 additions and 19 deletions
@@ -29,6 +29,10 @@ class HistoryRepositoryImpl(
return handler.awaitOne { historyQueries.getReadDuration() }
}
override suspend fun getHistoryByMangaId(mangaId: Long): List<History> {
return handler.awaitList { historyQueries.getHistoryByMangaId(mangaId, historyMapper) }
}
override suspend fun resetHistory(historyId: Long) {
try {
handler.await { historyQueries.resetHistoryById(historyId) }