diff options
Diffstat (limited to 'models/repo_branch.go')
-rw-r--r-- | models/repo_branch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo_branch.go b/models/repo_branch.go index 1d98fd12..24046d6f 100644 --- a/models/repo_branch.go +++ b/models/repo_branch.go @@ -131,7 +131,7 @@ func UpdateProtectBranch(protectBranch *ProtectBranch) (err error) { } } - if _, err = sess.Id(protectBranch.ID).AllCols().Update(protectBranch); err != nil { + if _, err = sess.ID(protectBranch.ID).AllCols().Update(protectBranch); err != nil { return fmt.Errorf("Update: %v", err) } @@ -234,7 +234,7 @@ func UpdateOrgProtectBranch(repo *Repository, protectBranch *ProtectBranch, whit return err } - if _, err = sess.Id(protectBranch.ID).AllCols().Update(protectBranch); err != nil { + if _, err = sess.ID(protectBranch.ID).AllCols().Update(protectBranch); err != nil { return fmt.Errorf("Update: %v", err) } |