summaryrefslogtreecommitdiffstats
path: root/models/issue_indexer.go
diff options
context:
space:
mode:
authorMorlinest <morlinest@gmail.com>2017-10-10 22:37:18 +0200
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-10-10 22:37:18 +0200
commitdff26e25ca4e088ac709bc4b11eb84cdb9603d34 (patch)
tree2718eafc36bf69f4915ddf1aa83fe1fcf112d4f5 /models/issue_indexer.go
parentc2346e44696e57c31f9765c32ee60b365a15c8f0 (diff)
downloadgitea-dff26e25ca4e088ac709bc4b11eb84cdb9603d34.tar.gz
gitea-dff26e25ca4e088ac709bc4b11eb84cdb9603d34.zip
Remove redudant functions and code (#2652)
* Remove redudant functions and code
Diffstat (limited to 'models/issue_indexer.go')
-rw-r--r--models/issue_indexer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/issue_indexer.go b/models/issue_indexer.go
index b58c9dc2d1..18c6f281b2 100644
--- a/models/issue_indexer.go
+++ b/models/issue_indexer.go
@@ -27,9 +27,11 @@ func InitIssueIndexer() {
func populateIssueIndexer() error {
batch := indexer.IssueIndexerBatch()
for page := 1; ; page++ {
- repos, _, err := Repositories(&SearchRepoOptions{
+ repos, _, err := SearchRepositoryByName(&SearchRepoOptions{
Page: page,
PageSize: 10,
+ OrderBy: SearchOrderByID,
+ Private: true,
})
if err != nil {
return fmt.Errorf("Repositories: %v", err)