mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 19:27:25 +01:00
Revert last_updated change
This commit is contained in:
parent
d72c51c8dd
commit
b06189ff95
@ -134,15 +134,7 @@ fun syncChaptersWithSource(
|
|||||||
db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking()
|
db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking()
|
||||||
|
|
||||||
// Set this manga as updated since chapters were changed
|
// Set this manga as updated since chapters were changed
|
||||||
val newestChapter = db.getChapters(manga).executeAsBlocking().maxBy { it.date_upload }
|
manga.last_update = Date().time
|
||||||
val dateFetch = newestChapter?.date_upload ?: manga.last_update
|
|
||||||
if (dateFetch == 0L) {
|
|
||||||
if (toAdd.isNotEmpty()) {
|
|
||||||
manga.last_update = Date().time
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
manga.last_update = dateFetch
|
|
||||||
}
|
|
||||||
db.updateLastUpdated(manga).executeAsBlocking()
|
db.updateLastUpdated(manga).executeAsBlocking()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user