aboutsummaryrefslogtreecommitdiffstats
path: root/modules/indexer/issues/indexer.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-04-25 16:06:24 +0200
committerGitHub <noreply@github.com>2022-04-25 16:06:24 +0200
commitddbbe6e15ce411a286c2c9ea4e9fb4107fe3cde5 (patch)
tree9ec29e551b0a06a3cbc2027aa968d5fc06883a6b /modules/indexer/issues/indexer.go
parentfe274c148bc516b63aa89ab1904d124e60903421 (diff)
downloadgitea-ddbbe6e15ce411a286c2c9ea4e9fb4107fe3cde5.tar.gz
gitea-ddbbe6e15ce411a286c2c9ea4e9fb4107fe3cde5.zip
User specific repoID or xorm builder conditions for issue search (#19475)
* extend models.IssuesOptions to have more specific repo filter options * use new options * unrelated refactor * rm RepoIDs
Diffstat (limited to 'modules/indexer/issues/indexer.go')
-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 1343b0bddd..8ca9975c7b 100644
--- a/modules/indexer/issues/indexer.go
+++ b/modules/indexer/issues/indexer.go
@@ -321,7 +321,7 @@ func populateIssueIndexer(ctx context.Context) {
// UpdateRepoIndexer add/update all issues of the repositories
func UpdateRepoIndexer(repo *repo_model.Repository) {
is, err := models.Issues(&models.IssuesOptions{
- RepoIDs: []int64{repo.ID},
+ RepoID: repo.ID,
IsClosed: util.OptionalBoolNone,
IsPull: util.OptionalBoolNone,
})