improvement some release related code (#19867)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2022-06-03 02:13:58 -04:00
1 parent 0c759fd4de
commit e09fb30d34
7 files changed
+35 -52

No files matched your search

+1 -1
View File
@@ -399,7 +399,7 @@ func pushUpdateAddTags(ctx context.Context, repo *repo_model.Repository, gitRepo
}
if len(newReleases) > 0 {
if err = models.InsertReleasesContext(ctx, newReleases); err != nil {
if err = db.Insert(ctx, newReleases); err != nil {
return fmt.Errorf("Insert: %v", err)
}
}