Skip to content

Commit 13e144e

Browse files
zrquanvictordibia
andauthored
fix: order by clause (#7051)
Co-authored-by: Victor Dibia <[email protected]>
1 parent 6dc0a23 commit 13e144e

File tree

1 file changed

+1
-1
lines changed
  • python/packages/autogen-studio/autogenstudio/web/routes

1 file changed

+1
-1
lines changed

python/packages/autogen-studio/autogenstudio/web/routes/runs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ async def get_run(run_id: int, db=Depends(get_db)) -> Dict:
6060
@router.get("/{run_id}/messages")
6161
async def get_run_messages(run_id: int, db=Depends(get_db)) -> Dict:
6262
"""Get all messages for a run"""
63-
messages = db.get(Message, filters={"run_id": run_id}, order="created_at asc", return_json=False)
63+
messages = db.get(Message, filters={"run_id": run_id}, order="asc", return_json=False)
6464

6565
return {"status": True, "data": messages.data}

0 commit comments

Comments
 (0)