diff options
Diffstat (limited to 'models/branches.go')
-rw-r--r-- | models/branches.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/branches.go b/models/branches.go index c26ee7d890..6a0bf6c19f 100644 --- a/models/branches.go +++ b/models/branches.go @@ -142,7 +142,7 @@ func UpdateProtectBranch(repo *Repository, protectBranch *ProtectedBranch, white return nil } - if _, err = x.Id(protectBranch.ID).AllCols().Update(protectBranch); err != nil { + if _, err = x.ID(protectBranch.ID).AllCols().Update(protectBranch); err != nil { return fmt.Errorf("Update: %v", err) } |