mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-20 11:13:33 -05:00
Send last read chapter in Mangas in Category API (#507)
* Send last read chapter with manga * optimize query * introduce new field for better performance
This commit is contained in:
@@ -45,6 +45,7 @@ data class MangaDataClass(
|
||||
var unreadCount: Long? = null,
|
||||
var downloadCount: Long? = null,
|
||||
var chapterCount: Long? = null,
|
||||
var lastReadAt: Long? = null,
|
||||
var lastChapterRead: ChapterDataClass? = null,
|
||||
|
||||
val age: Long? = if (lastFetchedAt == null) 0 else Instant.now().epochSecond.minus(lastFetchedAt),
|
||||
|
||||
Reference in New Issue
Block a user