mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
Make returned proc list to be returned always in correct order (#1060)
This commit is contained in:
parent
75b62ffadc
commit
550aefead4
@ -44,7 +44,10 @@ func (s storage) ProcChild(build *model.Build, ppid int, child string) (*model.P
|
|||||||
|
|
||||||
func (s storage) ProcList(build *model.Build) ([]*model.Proc, error) {
|
func (s storage) ProcList(build *model.Build) ([]*model.Proc, error) {
|
||||||
procList := make([]*model.Proc, 0, perPage)
|
procList := make([]*model.Proc, 0, perPage)
|
||||||
return procList, s.engine.Where("proc_build_id = ?", build.ID).Find(&procList)
|
return procList, s.engine.
|
||||||
|
Where("proc_build_id = ?", build.ID).
|
||||||
|
OrderBy("proc_pid").
|
||||||
|
Find(&procList)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s storage) ProcCreate(procs []*model.Proc) error {
|
func (s storage) ProcCreate(procs []*model.Proc) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user