mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Sort agents list by ID (#2795)
This commit is contained in:
@@ -24,7 +24,7 @@ var ErrNoTokenProvided = errors.New("Please provide a token")
|
||||
|
||||
func (s storage) AgentList(p *model.ListOptions) ([]*model.Agent, error) {
|
||||
var agents []*model.Agent
|
||||
return agents, s.paginate(p).Find(&agents)
|
||||
return agents, s.paginate(p).OrderBy("id").Find(&agents)
|
||||
}
|
||||
|
||||
func (s storage) AgentFind(id int64) (*model.Agent, error) {
|
||||
|
||||
Reference in New Issue
Block a user