diff options
Diffstat (limited to 'internal/db/comment.go')
-rw-r--r-- | internal/db/comment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/comment.go b/internal/db/comment.go index 03f95eea..50976357 100644 --- a/internal/db/comment.go +++ b/internal/db/comment.go @@ -239,7 +239,7 @@ func createComment(e *xorm.Session, opts *CreateCommentOptions) (_ *Comment, err attachments[i].IssueID = opts.Issue.ID attachments[i].CommentID = comment.ID // No assign value could be 0, so ignore AllCols(). - if _, err = e.Id(attachments[i].ID).Update(attachments[i]); err != nil { + if _, err = e.ID(attachments[i].ID).Update(attachments[i]); err != nil { return nil, fmt.Errorf("update attachment [%d]: %v", attachments[i].ID, err) } } |