Browse Source

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

for-closed-social
Lunny Xiao 6 years ago
committed by Lauris BH
parent
commit
1b3404eaca
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/repo.go

+ 1
- 0
models/repo.go View File

@ -1771,6 +1771,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