0
0
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:
Tyrone Yeh 2025-05-08 15:20:24 +08:00
parent 41be926458
commit cce417c3a4
No known key found for this signature in database
GPG Key ID: AC8B5AA00375E170

View File

@ -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
}