mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 11:35:03 +01:00 
			
		
		
		
	Fix locking bug in removeOrgRepo (#1842)
This commit is contained in:
		
							parent
							
								
									5554165a0c
								
							
						
					
					
						commit
						336e311a7c
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user