mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-25 21:44:20 -04:00
Fix SetExpr failed (#9506)
This commit is contained in:
parent
2401779aac
commit
3d5f31f77d
@ -103,10 +103,10 @@ func pushUpdateDeleteTags(e Engine, repo *Repository, tags []string) error {
|
|||||||
if _, err := e.
|
if _, err := e.
|
||||||
Where("repo_id = ? AND is_tag = ?", repo.ID, false).
|
Where("repo_id = ? AND is_tag = ?", repo.ID, false).
|
||||||
In("lower_tag_name", lowerTags).
|
In("lower_tag_name", lowerTags).
|
||||||
SetExpr("is_draft", true).
|
Cols("is_draft", "num_commits", "sha1").
|
||||||
SetExpr("num_commits", 0).
|
Update(&Release{
|
||||||
SetExpr("sha1", "").
|
IsDraft: true,
|
||||||
Update(new(Release)); err != nil {
|
}); err != nil {
|
||||||
return fmt.Errorf("Update: %v", err)
|
return fmt.Errorf("Update: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user