diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-05-31 20:41:14 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-01 08:41:14 +0800 |
commit | 336e311a7c20263f8269b09321eb5f6a65e64016 (patch) | |
tree | 0abf2917b94552cc5e969fe62ae6486f2dfc38d9 /models/org.go | |
parent | 5554165a0c5da0a62165d9c429839f4a56b01af7 (diff) | |
download | gitea-336e311a7c20263f8269b09321eb5f6a65e64016.tar.gz gitea-336e311a7c20263f8269b09321eb5f6a65e64016.zip |
Fix locking bug in removeOrgRepo (#1842)
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 30a9b4c7e0..b2c595ea5e 100644 --- a/models/org.go +++ b/models/org.go @@ -552,7 +552,7 @@ func removeOrgRepo(e Engine, orgID, repoID int64) error { teamIDs[i] = teamRepo.ID } - _, err := x.Decr("num_repos").In("id", teamIDs).Update(new(Team)) + _, err := e.Decr("num_repos").In("id", teamIDs).Update(new(Team)) return err } |