fix get first step issue (#1514)
This commit is contained in:
@@ -400,6 +400,7 @@ class AgentDB:
|
||||
.filter_by(task_id=task_id)
|
||||
.filter_by(organization_id=organization_id)
|
||||
.order_by(StepModel.order.asc())
|
||||
.order_by(StepModel.retry_index.asc())
|
||||
)
|
||||
).first():
|
||||
return convert_to_step(step, debug_enabled=self.debug_enabled)
|
||||
|
||||
Reference in New Issue
Block a user