Skip to content

Commit cce417c

Browse files
committed
Adjuect from Cols to Select
1 parent 41be926 commit cce417c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/issue_project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (issue *Issue) LoadProject(ctx context.Context) (err error) {
2424

2525
func (issue *Issue) projectIDs(ctx context.Context) []int64 {
2626
var ids []int64
27-
if err := db.GetEngine(ctx).Table("project_issue").Where("issue_id=?", issue.ID).Cols("project_id").Find(&ids); err != nil {
27+
if err := db.GetEngine(ctx).Table("project_issue").Where("issue_id=?", issue.ID).Select("project_id").Find(&ids); err != nil {
2828
return nil
2929
}
3030

0 commit comments

Comments
 (0)