diff options
author | Unknwon <u@gogs.io> | 2016-03-11 10:15:55 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-11 10:15:55 -0500 |
commit | cb1eadc2768ea5ffb2967eb4262e96730c3f9ba5 (patch) | |
tree | 9ee81ef7fb5901aefb5c28d8ae09e55bbf9121b5 /models/issue_comment.go | |
parent | 5267dce21023802818b0c0c16ba2ca47c146e1b5 (diff) | |
parent | 1314ba219ef8a655872df743434bffe959d3028f (diff) |
Merge pull request #2810 from maxlazio/fix_updated_and_created
Update uses of updated and created
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r-- | models/issue_comment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index f0cc6188..7c96a7d3 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -310,7 +310,7 @@ func GetCommentByID(id int64) (*Comment, error) { // GetCommentsByIssueID returns all comments of issue by given ID. func GetCommentsByIssueID(issueID int64) ([]*Comment, error) { comments := make([]*Comment, 0, 10) - return comments, x.Where("issue_id=?", issueID).Asc("created").Find(&comments) + return comments, x.Where("issue_id=?", issueID).Asc("created_unix").Find(&comments) } // UpdateComment updates information of comment. |