aboutsummaryrefslogtreecommitdiff
path: root/models/comment.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-08-16 20:26:09 +0800
committerUnknwon <u@gogs.io>2018-08-16 20:26:09 +0800
commit77275a9b311ed126f887628f33fbd917750420cd (patch)
tree3e0313ea79855787f1f64eb8da539142e223ddbd /models/comment.go
parentde10d9be08034ff285480c14b86be0c1824df16b (diff)
models: rename Id to ID
Diffstat (limited to 'models/comment.go')
-rw-r--r--models/comment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/comment.go b/models/comment.go
index 66531bbb..67fc2511 100644
--- a/models/comment.go
+++ b/models/comment.go
@@ -500,7 +500,7 @@ func DeleteCommentByID(doer *User, id int64) error {
return err
}
- if _, err = sess.Id(comment.ID).Delete(new(Comment)); err != nil {
+ if _, err = sess.ID(comment.ID).Delete(new(Comment)); err != nil {
return err
}