Skip to content

Commit 1b3404e

Browse files
lunnylafriks
authored andcommitted
fix forgot deletion of notification when delete repository (#5506)
1 parent 928417a commit 1b3404e

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
@@ -1771,6 +1771,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
17711771
&RepoRedirect{RedirectRepoID: repoID},
17721772
&Webhook{RepoID: repoID},
17731773
&HookTask{RepoID: repoID},
1774+
&Notification{RepoID: repoID},
17741775
); err != nil {
17751776
return fmt.Errorf("deleteBeans: %v", err)
17761777
}

0 commit comments

Comments
 (0)