webhook and hook_task clean up (#4006)

webhook and hook_task clean up
This commit is contained in:
奶爸 2018-05-22 07:08:21 +08:00 committed by Lauris BH
parent 5f169bfcfd
commit f1720ad133

View file

@ -1822,6 +1822,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)
}