Skip to content

Commit

Permalink
revert: "chore: Partial revert"
Browse files Browse the repository at this point in the history
This reverts commit abcf06b.
  • Loading branch information
null2264 committed Dec 14, 2024
1 parent 93e5eff commit 59a8bfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 59a8bfc

Please sign in to comment.