diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index a0f254f38..68f4d9fa6 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -23,7 +23,7 @@ func listIssues(ctx *context.APIContext, opts *models.IssuesOptions) { } if ctx.Query("state") == "all" { opts.IsClosed = !opts.IsClosed - temp_issues, err := models.Issues(&opts) + temp_issues, err := models.Issues(opts) if err != nil { ctx.Error(500, "Issues", err) return