Skip to content

Commit 98e4ef9

Browse files
committed
Fix bug on getIssueIDsByRepoID
1 parent da05799 commit 98e4ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ func getIssuesByIDs(e Engine, issueIDs []int64) ([]*Issue, error) {
10861086

10871087
func getIssueIDsByRepoID(e Engine, repoID int64) ([]int64, error) {
10881088
ids := make([]int64, 0, 10)
1089-
err := e.Table("issue").Where("repo_id = ?", repoID).Find(&ids)
1089+
err := e.Table("issue").Cols("id").Where("repo_id = ?", repoID).Find(&ids)
10901090
return ids, err
10911091
}
10921092

0 commit comments

Comments
 (0)