We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afe98af commit 7c2ef9bCopy full SHA for 7c2ef9b
models/issue.go
@@ -2076,6 +2076,7 @@ func deleteIssue(ctx context.Context, issue *Issue) error {
2076
&IssueDependency{},
2077
&IssueAssignees{},
2078
&IssueUser{},
2079
+ &Notification{},
2080
&Reaction{},
2081
&IssueWatch{},
2082
&Stopwatch{},
models/issue_comment.go
@@ -1172,7 +1172,7 @@ func deleteComment(e db.Engine, comment *Comment) error {
1172
}
1173
1174
if comment.Type == CommentTypeComment {
1175
- if _, err := e.Exec("UPDATE `issue` SET num_comments = num_comments - 1 WHERE id = ?", comment.IssueID); err != nil {
+ if _, err := e.ID(comment.IssueID).Decr("num_comments").Update(new(Issue)); err != nil {
1176
return err
1177
1178
0 commit comments