Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 3 years ago
parent
commit
8714538c3a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/search.go

+ 1
- 0
routers/search.go View File

@@ -454,6 +454,7 @@ func makeIssueResult(sRes *elastic.SearchResult, Key string) *SearchRes {
record := make(map[string]interface{})
record["id"] = recordSource["id"]
record["repo_id"] = recordSource["repo_id"]
log.Info("recordSource[\"repo_id\"]=" + fmt.Sprint(recordSource["repo_id"]))
repo, errRepo := models.GetRepositoryByID(recordSource["repo_id"].(int64))
if errRepo == nil {
record["repoUrl"] = repo.FullName()


Loading…
Cancel
Save