From a4454f5d0fbeaacb94668012acbb4296465cb28f Mon Sep 17 00:00:00 2001 From: Thibault Meyer Date: Thu, 10 Nov 2016 16:16:32 +0100 Subject: Rewrite XORM queries --- models/issue_comment.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'models/issue_comment.go') diff --git a/models/issue_comment.go b/models/issue_comment.go index 47246701a0..53a667f825 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -356,7 +356,9 @@ func GetCommentByID(id int64) (*Comment, error) { func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, error) { comments := make([]*Comment, 0, 10) - sess := e.Where("issue_id = ?", issueID).Asc("created_unix") + sess := e. + Where("issue_id = ?", issueID). + Asc("created_unix") if since > 0 { sess.And("updated_unix >= ?", since) } -- cgit v1.2.3