From a4ca8fbb0bd4801293800a32c8042282c75c0de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Mon, 20 Mar 2017 07:37:39 +0100 Subject: [PATCH] Update issue.go --- routers/api/v1/repo/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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