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

This commit is contained in:
Lunny Xiao 2018-12-11 19:09:53 +08:00 committed by GitHub
parent 9cf9a54dca
commit 60d7b614fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1838,6 +1838,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
&RepoRedirect{RedirectRepoID: repoID},
&Webhook{RepoID: repoID},
&HookTask{RepoID: repoID},
&Notification{RepoID: repoID},
); err != nil {
return fmt.Errorf("deleteBeans: %v", err)
}