Skip to content

Commit

Permalink
Update agents-api/agents_api/queries/docs/list_docs.py
Browse files Browse the repository at this point in the history
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
  • Loading branch information
Vedantsahai18 and ellipsis-dev[bot] authored Mar 5, 2025
1 parent 478213a commit f5191e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents-api/agents_api/queries/docs/list_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def list_docs(
if direction.lower() not in ["asc", "desc"]:
raise HTTPException(status_code=400, detail="Invalid sort direction")

if sort_by not in ["created_at", "timestamp"]:
if sort_by not in ["created_at", "updated_at"]:
raise HTTPException(status_code=400, detail="Invalid sort field")

if limit < 1:
Expand Down

0 comments on commit f5191e2

Please sign in to comment.