Skip to content

Commit

Permalink
fix version query
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi1992002 committed Dec 23, 2024
1 parent 770806c commit c856907
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autogpt_platform/backend/backend/server/v2/store/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ async def generate_image(
status_code=500, detail=f"Failed to generate image: {str(e)}"
)

@router.get("/download/agents/{store_listing_version_id}/{version}",tags=["store","public"],)
@router.get("/download/agents/{store_listing_version_id}",tags=["store","public"],)
async def download_agent_file(
store_listing_version_id: str = fastapi.Path(..., description="The ID of the agent to download"),
version: typing.Optional[int] = fastapi.Query(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ export default class BackendAPI {
storeListingVersionId: string,
version?: number,
): Promise<BlobPart> {
return this._get(`/download/agents/${storeListingVersionId}/${version}`);
return this._get(
`/download/agents/${storeListingVersionId}?version=${version}`,
);
}

/////////////////////////////////////////
Expand Down

0 comments on commit c856907

Please sign in to comment.