summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-05-19 22:17:48 +0800
committerGitHub <noreply@github.com>2023-05-19 22:17:48 +0800
commit38cf43d0606c13c38f459659f38e26cf31dceccb (patch)
tree53cae445e91b7448ae37a00a7ae398aa082f958d /modules
parentc757765a9e5c2d4f73b1a7c3debe3548c735bd54 (diff)
downloadgitea-38cf43d0606c13c38f459659f38e26cf31dceccb.tar.gz
gitea-38cf43d0606c13c38f459659f38e26cf31dceccb.zip
Some refactors for issues stats (#24793)
This PR - [x] Move some functions from `issues.go` to `issue_stats.go` and `issue_label.go` - [x] Remove duplicated issue options `UserIssueStatsOption` to keep only one `IssuesOptions`
Diffstat (limited to 'modules')
-rw-r--r--modules/indexer/issues/indexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/indexer/issues/indexer.go b/modules/indexer/issues/indexer.go
index e88b1b2bef..76ff80ffca 100644
--- a/modules/indexer/issues/indexer.go
+++ b/modules/indexer/issues/indexer.go
@@ -302,7 +302,7 @@ func populateIssueIndexer(ctx context.Context) {
// UpdateRepoIndexer add/update all issues of the repositories
func UpdateRepoIndexer(ctx context.Context, repo *repo_model.Repository) {
is, err := issues_model.Issues(ctx, &issues_model.IssuesOptions{
- RepoID: repo.ID,
+ RepoIDs: []int64{repo.ID},
IsClosed: util.OptionalBoolNone,
IsPull: util.OptionalBoolNone,
})