1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-09 11:36:12 +02:00
Webhook and hook_task not cleaned up when delete repository
This commit is contained in:
奶爸 2018-05-21 21:30:30 +08:00 committed by Lunny Xiao
parent 2690542adb
commit d94472e89b

View File

@ -1824,6 +1824,8 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
&PullRequest{BaseRepoID: repoID},
&RepoUnit{RepoID: repoID},
&RepoRedirect{RedirectRepoID: repoID},
&Webhook{RepoID: repoID},
&HookTask{RepoID: repoID},
); err != nil {
return fmt.Errorf("deleteBeans: %v", err)
}