Skip to content

Commit

Permalink
Fix SetExpr failed (#9506)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored and zeripath committed Dec 27, 2019
1 parent 2401779 commit 3d5f31f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ func pushUpdateDeleteTags(e Engine, repo *Repository, tags []string) error {
if _, err := e.
Where("repo_id = ? AND is_tag = ?", repo.ID, false).
In("lower_tag_name", lowerTags).
SetExpr("is_draft", true).
SetExpr("num_commits", 0).
SetExpr("sha1", "").
Update(new(Release)); err != nil {
Cols("is_draft", "num_commits", "sha1").
Update(&Release{
IsDraft: true,
}); err != nil {
return fmt.Errorf("Update: %v", err)
}

Expand Down

0 comments on commit 3d5f31f

Please sign in to comment.