mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
chore: Partial revert
This commit is contained in:
parent
e604c951ed
commit
abcf06b921
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ suspend fun syncChaptersWithSource(
|
|||
// Return if there's nothing to add, delete or change, avoid unnecessary db transactions.
|
||||
if (toAdd.isEmpty() && toDelete.isEmpty() && toChange.isEmpty()) {
|
||||
val newestDate = dbChapters.maxOfOrNull { it.date_upload } ?: 0L
|
||||
if (newestDate != 0L && newestDate > manga.last_update) {
|
||||
if (newestDate != 0L && newestDate != manga.last_update) {
|
||||
manga.last_update = newestDate
|
||||
val update = MangaUpdate(manga.id!!, lastUpdate = newestDate)
|
||||
updateManga.await(update)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue