mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-22 12:12:14 +02: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 {
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user