Skip to content

Commit

Permalink
Fix locking bug in removeOrgRepo (#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantkoenig authored and lunny committed Jun 1, 2017
1 parent 5554165 commit 336e311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 336e311

Please sign in to comment.