Skip to content

Commit f1720ad

Browse files
奶爸lafriks
authored andcommitted
webhook and hook_task clean up (#4006)
webhook and hook_task clean up
1 parent 5f169bf commit f1720ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

models/repo.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,8 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
18221822
&PullRequest{BaseRepoID: repoID},
18231823
&RepoUnit{RepoID: repoID},
18241824
&RepoRedirect{RedirectRepoID: repoID},
1825+
&Webhook{RepoID: repoID},
1826+
&HookTask{RepoID: repoID},
18251827
); err != nil {
18261828
return fmt.Errorf("deleteBeans: %v", err)
18271829
}

0 commit comments

Comments
 (0)