Webhook and hook_task not cleaned up when delete repository
tokarchuk/v1.17
奶爸 7 years ago committed by Lunny Xiao
parent 2690542adb
commit d94472e89b
  1. 2
      models/repo.go

@ -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)
}

Loading…
Cancel
Save