summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/admin/adopt.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/admin/adopt.go')
-rw-r--r--routers/api/v1/admin/adopt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/admin/adopt.go b/routers/api/v1/admin/adopt.go
index fb5888f083..062cee6283 100644
--- a/routers/api/v1/admin/adopt.go
+++ b/routers/api/v1/admin/adopt.go
@@ -42,7 +42,7 @@ func ListUnadoptedRepositories(ctx *context.APIContext) {
// "$ref": "#/responses/forbidden"
listOptions := utils.GetListOptions(ctx)
- repoNames, count, err := repository.ListUnadoptedRepositories(ctx.Form("query"), &listOptions)
+ repoNames, count, err := repository.ListUnadoptedRepositories(ctx.FormString("query"), &listOptions)
if err != nil {
ctx.InternalServerError(err)
}