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.
|
// 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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user