mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-23 23:31:56 +09:00
fix: order by index
This commit is contained in:
@@ -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("index").Find(&steps)
|
||||
return steps, db.GetEngine(ctx).Where("task_id=?", taskID).OrderBy("`index` ASC").Find(&steps)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user