mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 15:48:26 +01:00
Merge pull request #546 from ywk253100/order_jobs_by_update_time
Order jobs by update time
This commit is contained in:
commit
18e5251784
@ -342,7 +342,7 @@ func FilterRepJobs(policyID int64, repository, status string, startTime,
|
|||||||
qs = qs.Limit(limit)
|
qs = qs.Limit(limit)
|
||||||
}
|
}
|
||||||
|
|
||||||
qs = qs.OrderBy("-CreationTime")
|
qs = qs.OrderBy("-UpdateTime")
|
||||||
|
|
||||||
var jobs []*models.RepJob
|
var jobs []*models.RepJob
|
||||||
_, err := qs.All(&jobs)
|
_, err := qs.All(&jobs)
|
||||||
|
Loading…
Reference in New Issue
Block a user