diff options
author | Morlinest <morlinest@gmail.com> | 2017-10-10 22:37:18 +0200 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-10-10 22:37:18 +0200 |
commit | dff26e25ca4e088ac709bc4b11eb84cdb9603d34 (patch) | |
tree | 2718eafc36bf69f4915ddf1aa83fe1fcf112d4f5 /models/issue_indexer.go | |
parent | c2346e44696e57c31f9765c32ee60b365a15c8f0 (diff) | |
download | gitea-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.go | 4 |
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) |