Browse Source

#981

update
tags/v1.21.12.2^2
chenyifan01 3 years ago
parent
commit
fa0752c8c4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/repo_tag.go

+ 1
- 1
models/repo_tag.go View File

@@ -156,7 +156,7 @@ func GetOfficialTagDetail(orgID, tagId int64) ([]Repository, error) {
func GetAllOfficialTags() ([]OfficialTag, error) {
//todo redis?
o := make([]OfficialTag, 0)
err := x.Where("status = ?", 0).Find(&o)
err := x.Where("status = ?", 0).OrderBy("updated_unix desc").Find(&o)
if err != nil {
log.Error("GetAllOfficialTags error,%v", err)
return nil, err


Loading…
Cancel
Save