mirror of https://github.com/gogs/gogs.git
models/comment: remove unused SQL parameter (#4586)
parent
8ed2330d6e
commit
13cca8a66a
|
@ -437,7 +437,7 @@ func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, erro
|
||||||
|
|
||||||
func getCommentsByRepoIDSince(e Engine, repoID, since int64) ([]*Comment, error) {
|
func getCommentsByRepoIDSince(e Engine, repoID, since int64) ([]*Comment, error) {
|
||||||
comments := make([]*Comment, 0, 10)
|
comments := make([]*Comment, 0, 10)
|
||||||
sess := e.Where("issue.repo_id = ?", repoID).Join("INNER", "issue", "issue.id = comment.issue_id", repoID).Asc("comment.created_unix")
|
sess := e.Where("issue.repo_id = ?", repoID).Join("INNER", "issue", "issue.id = comment.issue_id").Asc("comment.created_unix")
|
||||||
if since > 0 {
|
if since > 0 {
|
||||||
sess.And("comment.updated_unix >= ?", since)
|
sess.And("comment.updated_unix >= ?", since)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue