fix(backend): use admin route for store downloads (#10406)

This commit is contained in:
Nicholas Tindle
2025-07-18 16:12:02 -05:00
committed by GitHub
parent 423b22214a
commit cf2ca63d52
2 changed files with 3 additions and 3 deletions

4
.vscode/launch.json vendored
View File

@@ -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?://.+)",

View File

@@ -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,
)