diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-06-02 21:06:10 -0400 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-06-02 20:06:09 -0500 |
commit | 036ce3f813fe740d6282fac43b1ec8d6b9141855 (patch) | |
tree | fc08da860023fec22ade4365150f5a6944a49a13 /models/org.go | |
parent | 62f600cf1ca5ffe029e470644839ea39283bf023 (diff) | |
download | gitea-036ce3f813fe740d6282fac43b1ec8d6b9141855.tar.gz gitea-036ce3f813fe740d6282fac43b1ec8d6b9141855.zip |
Fix bug in removeOrgRepo (#1858)
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 b2c595ea5e..5c2d89a78d 100644 --- a/models/org.go +++ b/models/org.go @@ -549,7 +549,7 @@ func removeOrgRepo(e Engine, orgID, repoID int64) error { teamIDs := make([]int64, len(teamRepos)) for i, teamRepo := range teamRepos { - teamIDs[i] = teamRepo.ID + teamIDs[i] = teamRepo.TeamID } _, err := e.Decr("num_repos").In("id", teamIDs).Update(new(Team)) |