fix forgot deletion of notification when delete repository (#5506)

This commit is contained in:
Lunny Xiao authored and Lauris BH committed 2018-12-10 22:01:01 +02:00
1 parent 928417ae39
commit 1b3404eaca
1 file changed
+1
+1
View File
@@ -1771,6 +1771,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
&RepoRedirect{RedirectRepoID: repoID}, &RepoRedirect{RedirectRepoID: repoID},
&Webhook{RepoID: repoID}, &Webhook{RepoID: repoID},
&HookTask{RepoID: repoID}, &HookTask{RepoID: repoID},
&Notification{RepoID: repoID},
); err != nil { ); err != nil {
return fmt.Errorf("deleteBeans: %v", err) return fmt.Errorf("deleteBeans: %v", err)
} }