Update models/actions/task_step.go

Co-authored-by: ChristopherHX <christopher.homberger@web.de>
This commit is contained in:
Jason Song 2023-01-05 18:05:07 +08:00 committed by GitHub
parent 22496aa57e
commit 63e82382fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,5 +37,5 @@ func init() {
func GetTaskStepsByTaskID(ctx context.Context, taskID int64) ([]*ActionTaskStep, error) {
var steps []*ActionTaskStep
return steps, db.GetEngine(ctx).Where("task_id=?", taskID).OrderBy("number").Find(&steps)
return steps, db.GetEngine(ctx).Where("task_id=?", taskID).OrderBy("index").Find(&steps)
}