Undo some weird thing SY had

This commit is contained in:
Jobobby04 2020-10-02 22:01:25 -04:00
parent e1fc94e6d3
commit a0cf7730f5

View File

@ -160,9 +160,8 @@ fun syncChaptersWithSource(
// Fix order in source. // Fix order in source.
db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking() db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking()
// Set manga's last update time to latest chapter's fetch time if possible // Set this manga as updated since chapters were changed
val newestChapter = db.getChapters(manga).executeAsBlocking().maxBy { it.date_fetch } manga.last_update = Date().time
manga.last_update = newestChapter?.date_fetch ?: Date().time
db.updateLastUpdated(manga).executeAsBlocking() db.updateLastUpdated(manga).executeAsBlocking()
} }