diff options
author | Unknwon <u@gogs.io> | 2018-08-16 20:26:09 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-08-16 20:26:09 +0800 |
commit | 77275a9b311ed126f887628f33fbd917750420cd (patch) | |
tree | 3e0313ea79855787f1f64eb8da539142e223ddbd /models/comment.go | |
parent | de10d9be08034ff285480c14b86be0c1824df16b (diff) |
models: rename Id to ID
Diffstat (limited to 'models/comment.go')
-rw-r--r-- | models/comment.go | 2 |
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 } |