summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))