mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-06 22:03:59 -05:00
fix(backend): use admin route for store downloads (#10406)
This commit is contained in:
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -6,7 +6,7 @@
|
|||||||
"type": "node-terminal",
|
"type": "node-terminal",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"cwd": "${workspaceFolder}/autogpt_platform/frontend",
|
"cwd": "${workspaceFolder}/autogpt_platform/frontend",
|
||||||
"command": "yarn dev"
|
"command": "pnpm dev"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Frontend: Client Side",
|
"name": "Frontend: Client Side",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"type": "node-terminal",
|
"type": "node-terminal",
|
||||||
|
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"command": "yarn dev",
|
"command": "pnpm dev",
|
||||||
"cwd": "${workspaceFolder}/autogpt_platform/frontend",
|
"cwd": "${workspaceFolder}/autogpt_platform/frontend",
|
||||||
"serverReadyAction": {
|
"serverReadyAction": {
|
||||||
"pattern": "- Local:.+(https?://.+)",
|
"pattern": "- Local:.+(https?://.+)",
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ async def admin_download_agent_file(
|
|||||||
Raises:
|
Raises:
|
||||||
HTTPException: If the agent is not found or an unexpected error occurs.
|
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,
|
user_id=user.user_id,
|
||||||
store_listing_version_id=store_listing_version_id,
|
store_listing_version_id=store_listing_version_id,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user