aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues/issue_search.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-08-08 03:26:40 +0800
committerGitHub <noreply@github.com>2023-08-07 19:26:40 +0000
commitf5dbac9d36f1678b928bee04e85fbd045c725698 (patch)
treed8cd9132eca624e6e9d6bbfa06caa673f879f374 /models/issues/issue_search.go
parentab0eb1c47b10a1a65f9db0b609fb5339613d1708 (diff)
downloadgitea-f5dbac9d36f1678b928bee04e85fbd045c725698.tar.gz
gitea-f5dbac9d36f1678b928bee04e85fbd045c725698.zip
Use more `IssueList` instead of `[]*Issue` (#26369)
Diffstat (limited to 'models/issues/issue_search.go')
-rw-r--r--models/issues/issue_search.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/issue_search.go b/models/issues/issue_search.go
index f9c1dbb384..281339044b 100644
--- a/models/issues/issue_search.go
+++ b/models/issues/issue_search.go
@@ -441,7 +441,7 @@ func GetRepoIDsForIssuesOptions(opts *IssuesOptions, user *user_model.User) ([]i
}
// Issues returns a list of issues by given conditions.
-func Issues(ctx context.Context, opts *IssuesOptions) ([]*Issue, error) {
+func Issues(ctx context.Context, opts *IssuesOptions) (IssueList, error) {
sess := db.GetEngine(ctx).
Join("INNER", "repository", "`issue`.repo_id = `repository`.id")
applyLimit(sess, opts)