Skip to content

Automate browser based workflows with AI

Fix actions API order, only order by created_at (#1090)

Shuchang Zheng01fbdeece480
diff --git a/skyvern/forge/sdk/db/client.py b/skyvern/forge/sdk/db/client.py
index 51010f8e4..fd3c61cbc 100644
--- a/skyvern/forge/sdk/db/client.py
+++ b/skyvern/forge/sdk/db/client.py
@@ -281,7 +281,7 @@ class AgentDB:
select(ActionModel)
.filter(ActionModel.organization_id == organization_id)
.filter(ActionModel.task_id == task_id)
- .order_by(ActionModel.step_order, ActionModel.action_order, ActionModel.created_at)
+ .order_by(ActionModel.created_at)
)
actions = (await session.scalars(query)).all()