Fix locking bug in removeOrgRepo (#1842)

tokarchuk/v1.17
Ethan Koenig 8 years ago committed by Lunny Xiao
parent 5554165a0c
commit 336e311a7c
  1. 2
      models/org.go

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

Loading…
Cancel
Save