diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-12-11 19:09:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-11 19:09:53 +0800 |
commit | 60d7b614fedfc2d0ee091ba2941f97332b46a03a (patch) | |
tree | 5e6de46ef540030fa42e4c508114c8a8bfa110ad | |
parent | 9cf9a54dca008800001c18f2018db98326d44fa5 (diff) | |
download | gitea-60d7b614fedfc2d0ee091ba2941f97332b46a03a.tar.gz gitea-60d7b614fedfc2d0ee091ba2941f97332b46a03a.zip |
fix forgot deletion of notification when delete repository (#5506) (#5514)
-rw-r--r-- | models/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index fbbd334c48..dc96d83f1f 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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) } |