diff options
Diffstat (limited to 'models/issue_list.go')
-rw-r--r-- | models/issue_list.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/models/issue_list.go b/models/issue_list.go index b516e7336e..8d7a3121b0 100644 --- a/models/issue_list.go +++ b/models/issue_list.go @@ -10,6 +10,7 @@ import ( "code.gitea.io/gitea/models/db" repo_model "code.gitea.io/gitea/models/repo" user_model "code.gitea.io/gitea/models/user" + "code.gitea.io/gitea/modules/container" "xorm.io/builder" ) @@ -32,7 +33,7 @@ func (issues IssueList) getRepoIDs() []int64 { repoIDs[issue.RepoID] = struct{}{} } } - return keysInt64(repoIDs) + return container.KeysInt64(repoIDs) } func (issues IssueList) loadRepositories(e db.Engine) ([]*repo_model.Repository, error) { @@ -83,7 +84,7 @@ func (issues IssueList) getPosterIDs() []int64 { posterIDs[issue.PosterID] = struct{}{} } } - return keysInt64(posterIDs) + return container.KeysInt64(posterIDs) } func (issues IssueList) loadPosters(e db.Engine) error { @@ -189,7 +190,7 @@ func (issues IssueList) getMilestoneIDs() []int64 { ids[issue.MilestoneID] = struct{}{} } } - return keysInt64(ids) + return container.KeysInt64(ids) } func (issues IssueList) loadMilestones(e db.Engine) error { |