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 45f8d97 commit 04fcf23Copy full SHA for 04fcf23
models/issue.go
@@ -2124,6 +2124,7 @@ func deleteIssue(ctx context.Context, issue *Issue) error {
2124
&IssueDependency{},
2125
&IssueAssignees{},
2126
&IssueUser{},
2127
+ &Notification{},
2128
&Reaction{},
2129
&IssueWatch{},
2130
&Stopwatch{},
models/issue_comment.go
@@ -1163,7 +1163,7 @@ func deleteComment(e db.Engine, comment *Comment) error {
1163
}
1164
1165
if comment.Type == CommentTypeComment {
1166
- 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 {
1167
return err
1168
1169
0 commit comments