From ca93783e727449a910449a46803094b8b00d2398 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Wed, 1 Jul 2026 17:51:53 +0200 Subject: [PATCH] Fix gql "extension" "extension store" typing (#2151) The local source, externally installed apks and extensions whose extension store got removed do not have a store. This caused gql to fail because the extensions "extensionStore" was expected to be non-nullable. --- CHANGELOG.md | 2 +- .../kotlin/suwayomi/tachidesk/graphql/types/ExtensionType.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49f5a91f8..29f3e04dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - . ### Fixed -- . +- (**Extension/API**) Fix GQL handling of extensions without an extension store ## [v2.3.2223] + [WebUI: v20260509.01] - 2026-06-30 diff --git a/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/ExtensionType.kt b/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/ExtensionType.kt index cbddc8e59..35dc9b4d5 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/ExtensionType.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/graphql/types/ExtensionType.kt @@ -71,8 +71,8 @@ class ExtensionType( fun source(dataFetchingEnvironment: DataFetchingEnvironment): CompletableFuture = dataFetchingEnvironment.getValueFromDataLoader("SourcesForExtensionDataLoader", pkgName) - fun extensionStore(dataFetchingEnvironment: DataFetchingEnvironment): CompletableFuture = - dataFetchingEnvironment.getValueFromDataLoader("ExtensionStoreDataLoader", storeIndexUrl.orEmpty()) + fun extensionStore(dataFetchingEnvironment: DataFetchingEnvironment): CompletableFuture = + dataFetchingEnvironment.getValueFromDataLoader("ExtensionStoreDataLoader", storeIndexUrl.orEmpty()) } data class ExtensionNodeList(