Explorar o código

fix: invalid key of marketplace response

Yeuoly hai 5 meses
pai
achega
8b5231b7ee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/core/helper/marketplace.py

+ 1 - 1
api/core/helper/marketplace.py

@@ -26,4 +26,4 @@ def batch_fetch_plugin_manifests(plugin_ids: list[str]) -> Sequence[MarketplaceP
     url = str(URL(str(dify_config.MARKETPLACE_API_URL)) / "api/v1/plugins/batch")
     response = requests.post(url, json={"plugin_ids": plugin_ids})
     response.raise_for_status()
-    return [MarketplacePluginDeclaration(**plugin) for plugin in response.json()["plugins"]]
+    return [MarketplacePluginDeclaration(**plugin) for plugin in response.json()["data"]["plugins"]]