mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix locking bug in removeOrgRepo (#1842)
This commit is contained in:
		@@ -552,7 +552,7 @@ func removeOrgRepo(e Engine, orgID, repoID int64) error {
 | 
				
			|||||||
		teamIDs[i] = teamRepo.ID
 | 
							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
 | 
						return err
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user