order jobs by update time

This commit is contained in:
Wenkai Yin 2016-07-14 17:54:25 +08:00
parent 48af6cbfb5
commit e14a03259e

View File

@ -342,7 +342,7 @@ func FilterRepJobs(policyID int64, repository, status string, startTime,
qs = qs.Limit(limit)
}
qs = qs.OrderBy("-CreationTime")
qs = qs.OrderBy("-UpdateTime")
var jobs []*models.RepJob
_, err := qs.All(&jobs)