diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-09-25 12:59:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 12:59:27 +0800 |
commit | dd55534b82ca9527b68fddf0f63ebb13c105c466 (patch) | |
tree | 5e1398ac3d07da8b7e4cb4fdd52695cea19b62b7 /models/org.go | |
parent | 6b6f16cfae5636deb88003fc5b0290450afb4137 (diff) | |
download | gitea-dd55534b82ca9527b68fddf0f63ebb13c105c466.tar.gz gitea-dd55534b82ca9527b68fddf0f63ebb13c105c466.zip |
Reduce usage of allcols on update (#2596)
* reduce usage of allcols on update
* fix bug and tests
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org.go b/models/org.go index eaf7ba602c..82a56cac18 100644 --- a/models/org.go +++ b/models/org.go @@ -412,7 +412,7 @@ func ChangeOrgUserStatus(orgID, uid int64, public bool) error { } ou.IsPublic = public - _, err = x.Id(ou.ID).AllCols().Update(ou) + _, err = x.Id(ou.ID).Cols("is_public").Update(ou) return err } |