From 1314ba219ef8a655872df743434bffe959d3028f Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Fri, 11 Mar 2016 12:43:35 +0100 Subject: Updated and created were appended with _unix. Fresh databases have only the newly named fields. --- models/issue_comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/issue_comment.go') 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. -- cgit v1.2.3