Browse Source

Fix bug in removeOrgRepo (#1858)

tags/v1.2.0-rc1
Ethan Koenig Bo-Yi Wu 8 years ago
parent
commit
bd325693a4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/org.go

+ 1
- 1
models/org.go View File

@@ -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))


Loading…
Cancel
Save