mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-21 16:06:29 +00:00
Sort agents list by ID (#2795)
This commit is contained in:
parent
9f9127b093
commit
08f47afbd1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue