mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-15 09:37:29 +00:00
Adjuect from Cols to Select
This commit is contained in:
parent
41be926458
commit
cce417c3a4
@ -24,7 +24,7 @@ func (issue *Issue) LoadProject(ctx context.Context) (err error) {
|
|||||||
|
|
||||||
func (issue *Issue) projectIDs(ctx context.Context) []int64 {
|
func (issue *Issue) projectIDs(ctx context.Context) []int64 {
|
||||||
var ids []int64
|
var ids []int64
|
||||||
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 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user