Skip to content

Commit 60d7b61

Browse files
authored
fix forgot deletion of notification when delete repository (#5506) (#5514)
1 parent 9cf9a54 commit 60d7b61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
18381838
&RepoRedirect{RedirectRepoID: repoID},
18391839
&Webhook{RepoID: repoID},
18401840
&HookTask{RepoID: repoID},
1841+
&Notification{RepoID: repoID},
18411842
); err != nil {
18421843
return fmt.Errorf("deleteBeans: %v", err)
18431844
}

0 commit comments

Comments
 (0)