From f1720ad133103b0e6ce58c12d6fa25758416b6bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=B6=E7=88=B8?= <1@5.nu> Date: Tue, 22 May 2018 07:08:21 +0800 Subject: [PATCH] webhook and hook_task clean up (#4006) webhook and hook_task clean up --- models/repo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/repo.go b/models/repo.go index 1ba8d500e..1142c590b 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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) }