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

release/v1.6
Lunny Xiao 5 years ago committed by GitHub
parent 9cf9a54dca
commit 60d7b614fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
}

Loading…
Cancel
Save