Skip to content

Commit 13cca8a

Browse files
committed
models/comment: remove unused SQL parameter (gogs#4586)
1 parent 8ed2330 commit 13cca8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/comment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, erro
437437

438438
func getCommentsByRepoIDSince(e Engine, repoID, since int64) ([]*Comment, error) {
439439
comments := make([]*Comment, 0, 10)
440-
sess := e.Where("issue.repo_id = ?", repoID).Join("INNER", "issue", "issue.id = comment.issue_id", repoID).Asc("comment.created_unix")
440+
sess := e.Where("issue.repo_id = ?", repoID).Join("INNER", "issue", "issue.id = comment.issue_id").Asc("comment.created_unix")
441441
if since > 0 {
442442
sess.And("comment.updated_unix >= ?", since)
443443
}

0 commit comments

Comments
 (0)