fix GetLatestCommitStatuses
This commit is contained in:
parent
21b57b6bc5
commit
cd11672fd1
|
|
@ -181,7 +181,7 @@ func GetLatestCommitStatuses(repoIDs []int64, shas []string) ([][]*CommitStatus,
|
|||
err := x.Table(&CommitStatus{}).
|
||||
Where(cond).
|
||||
Select("max( id ) as id, repo_id").
|
||||
GroupBy("context").OrderBy("max( id ) desc").Find(&results)
|
||||
GroupBy("repo_id, sha, context").OrderBy("max( id ) desc").Find(&results)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user