Browse Source

#981

fix bug
tags/v1.21.12.2^2
chenyifan01 4 years ago
parent
commit
19fae465a3
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      models/repo_tag.go

+ 4
- 0
models/repo_tag.go View File

@@ -76,6 +76,10 @@ func UpdateTagReposByID(tagID, orgID int64, repoIdList []int64) error {
return err
}

if len(repoIdList) == 0 {
return sess.Commit()
}

//add new tag repos
data := make([]*OfficialTagRepos, 0)
for _, repoId := range repoIdList {


Loading…
Cancel
Save