mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-19 08:45:27 +01:00
order jobs by update time
This commit is contained in:
parent
48af6cbfb5
commit
e14a03259e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user