diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/issue_comment.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index a17be97e72..bab002fcad 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -462,7 +462,9 @@ func DeleteComment(comment *Comment) error { return err } - if _, err := sess.Id(comment.ID).Delete(new(Comment)); err != nil { + if _, err := sess.Delete(&Comment{ + ID: comment.ID, + }); err != nil { return err } |