From b277b3e3af502dd88e49234cbb9df61465abd9c9 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 17 Feb 2024 17:23:35 +0100 Subject: [PATCH] Add thumbnail fetch timestamp to the gql manga type (#872) --- .../main/kotlin/suwayomi/tachidesk/graphql/types/MangaType.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/MangaType.kt b/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/MangaType.kt index c805f12ac..ef58440b3 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/MangaType.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/MangaType.kt @@ -30,6 +30,7 @@ class MangaType( val url: String, val title: String, val thumbnailUrl: String?, + val thumbnailUrlLastFetched: Long?, val initialized: Boolean, val artist: String?, val author: String?, @@ -70,6 +71,7 @@ class MangaType( row[MangaTable.url], row[MangaTable.title], row[MangaTable.thumbnail_url]?.let { MangaList.proxyThumbnailUrl(row[MangaTable.id].value) }, + row[MangaTable.thumbnailUrlLastFetched], row[MangaTable.initialized], row[MangaTable.artist], row[MangaTable.author], @@ -90,6 +92,7 @@ class MangaType( dataClass.url, dataClass.title, dataClass.thumbnailUrl, + dataClass.thumbnailUrlLastFetched, dataClass.initialized, dataClass.artist, dataClass.author,