Undo some weird thing SY had
This commit is contained in:
parent
e1fc94e6d3
commit
a0cf7730f5
@ -160,9 +160,8 @@ fun syncChaptersWithSource(
|
||||
// Fix order in source.
|
||||
db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking()
|
||||
|
||||
// Set manga's last update time to latest chapter's fetch time if possible
|
||||
val newestChapter = db.getChapters(manga).executeAsBlocking().maxBy { it.date_fetch }
|
||||
manga.last_update = newestChapter?.date_fetch ?: Date().time
|
||||
// Set this manga as updated since chapters were changed
|
||||
manga.last_update = Date().time
|
||||
db.updateLastUpdated(manga).executeAsBlocking()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user