diff options
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 f0cc6188a0..7c96a7d34e 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. |