Skip to content

Commit

Permalink
fix #4003 (#4004)
Browse files Browse the repository at this point in the history
Webhook and hook_task not cleaned up when delete repository
  • Loading branch information
奶爸 authored and lunny committed May 21, 2018
1 parent 2690542 commit d94472e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d94472e

Please sign in to comment.