forked from gitea/gitea
1
0
Fork 0

Fix locking bug in removeOrgRepo (#1842)

This commit is contained in:
Ethan Koenig 2017-05-31 20:41:14 -04:00 committed by Lunny Xiao
parent 5554165a0c
commit 336e311a7c
1 changed files with 1 additions and 1 deletions

View File

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