We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41be926 commit cce417cCopy full SHA for cce417c
models/issues/issue_project.go
@@ -24,7 +24,7 @@ func (issue *Issue) LoadProject(ctx context.Context) (err error) {
24
25
func (issue *Issue) projectIDs(ctx context.Context) []int64 {
26
var ids []int64
27
- if err := db.GetEngine(ctx).Table("project_issue").Where("issue_id=?", issue.ID).Cols("project_id").Find(&ids); err != nil {
+ if err := db.GetEngine(ctx).Table("project_issue").Where("issue_id=?", issue.ID).Select("project_id").Find(&ids); err != nil {
28
return nil
29
}
30
0 commit comments