aboutsummaryrefslogtreecommitdiffstats
path: root/models/org.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-06-02 21:06:10 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-06-02 20:06:09 -0500
commit036ce3f813fe740d6282fac43b1ec8d6b9141855 (patch)
treefc08da860023fec22ade4365150f5a6944a49a13 /models/org.go
parent62f600cf1ca5ffe029e470644839ea39283bf023 (diff)
downloadgitea-036ce3f813fe740d6282fac43b1ec8d6b9141855.tar.gz
gitea-036ce3f813fe740d6282fac43b1ec8d6b9141855.zip
Fix bug in removeOrgRepo (#1858)
Diffstat (limited to 'models/org.go')
-rw-r--r--models/org.go2
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))