mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	Webhook and hook_task not cleaned up when delete repository
This commit is contained in:
		
					parent
					
						
							
								2690542adb
							
						
					
				
			
			
				commit
				
					
						d94472e89b
					
				
			
		
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -1824,6 +1824,8 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
 | 
				
			||||||
		&PullRequest{BaseRepoID: repoID},
 | 
							&PullRequest{BaseRepoID: repoID},
 | 
				
			||||||
		&RepoUnit{RepoID: repoID},
 | 
							&RepoUnit{RepoID: repoID},
 | 
				
			||||||
		&RepoRedirect{RedirectRepoID: repoID},
 | 
							&RepoRedirect{RedirectRepoID: repoID},
 | 
				
			||||||
 | 
							&Webhook{RepoID: repoID},
 | 
				
			||||||
 | 
							&HookTask{RepoID: repoID},
 | 
				
			||||||
	); err != nil {
 | 
						); err != nil {
 | 
				
			||||||
		return fmt.Errorf("deleteBeans: %v", err)
 | 
							return fmt.Errorf("deleteBeans: %v", err)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue