|
@@ -437,9 +437,9 @@ func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, erro
|
|
|
|
|
|
func getCommentsByRepoIDSince(e Engine, repoID, since int64) ([]*Comment, error) {
|
|
|
comments := make([]*Comment, 0, 10)
|
|
|
- sess := e.Where("issue.repo_id = ?", repoID).Join("INNER", "issue", "issue.id = comment.issue_id", repoID).Asc("created_unix")
|
|
|
+ sess := e.Where("issue.repo_id = ?", repoID).Join("INNER", "issue", "issue.id = comment.issue_id", repoID).Asc("comment.created_unix")
|
|
|
if since > 0 {
|
|
|
- sess.And("updated_unix >= ?", since)
|
|
|
+ sess.And("comment.updated_unix >= ?", since)
|
|
|
}
|
|
|
if err := sess.Find(&comments); err != nil {
|
|
|
return nil, err
|