AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): use admin route for store downloads (#10406)
Nicholas Tindlecf2ca63d5284
diff --git a/.vscode/launch.json b/.vscode/launch.jsonindex 6740265f33..c869e33c1e 100644--- a/.vscode/launch.json+++ b/.vscode/launch.json@@ -6,7 +6,7 @@"type": "node-terminal","request": "launch","cwd": "${workspaceFolder}/autogpt_platform/frontend",- "command": "yarn dev"+ "command": "pnpm dev"},{"name": "Frontend: Client Side",@@ -19,7 +19,7 @@"type": "node-terminal","request": "launch",- "command": "yarn dev",+ "command": "pnpm dev","cwd": "${workspaceFolder}/autogpt_platform/frontend","serverReadyAction": {"pattern": "- Local:.+(https?://.+)",diff --git a/autogpt_platform/backend/backend/server/v2/admin/store_admin_routes.py b/autogpt_platform/backend/backend/server/v2/admin/store_admin_routes.pyindex 88f69360a4..f37f832948 100644--- a/autogpt_platform/backend/backend/server/v2/admin/store_admin_routes.py+++ b/autogpt_platform/backend/backend/server/v2/admin/store_admin_routes.py@@ -131,7 +131,7 @@ async def admin_download_agent_file(Raises:HTTPException: If the agent is not found or an unexpected error occurs."""- graph_data = await backend.server.v2.store.db.get_agent(+ graph_data = await backend.server.v2.store.db.get_agent_as_admin(user_id=user.user_id,store_listing_version_id=store_listing_version_id,)