Skip to content

Commit 336e311

Browse files
ethantkoeniglunny
authored andcommitted
Fix locking bug in removeOrgRepo (#1842)
1 parent 5554165 commit 336e311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ func removeOrgRepo(e Engine, orgID, repoID int64) error {
552552
teamIDs[i] = teamRepo.ID
553553
}
554554

555-
_, err := x.Decr("num_repos").In("id", teamIDs).Update(new(Team))
555+
_, err := e.Decr("num_repos").In("id", teamIDs).Update(new(Team))
556556
return err
557557
}
558558

0 commit comments

Comments
 (0)