diff --git a/routers/web/admin/repos.go b/routers/web/admin/repos.go index 7b04340576..21578725b1 100644 --- a/routers/web/admin/repos.go +++ b/routers/web/admin/repos.go @@ -47,7 +47,7 @@ func Repos(ctx *context.Context) { } func UpdateRepoPost(ctx *context.Context) { - form := web.GetForm(ctx).(*forms.UpdateGlobalRepoFrom) + form := web.GetForm(ctx).(*forms.UpdateGlobalRepoForm) ctx.Data["Title"] = ctx.Tr("admin.repositories") ctx.Data["PageIsAdminRepositories"] = true diff --git a/routers/web/web.go b/routers/web/web.go index d91611f022..2bd600f10b 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -764,7 +764,7 @@ func registerWebRoutes(m *web.Router) { m.Get("", admin.Repos) m.Combo("/unadopted").Get(admin.UnadoptedRepos).Post(admin.AdoptOrDeleteRepository) m.Post("/delete", admin.DeleteRepo) - m.Post("", web.Bind(forms.UpdateGlobalRepoFrom{}), admin.UpdateRepoPost) + m.Post("", web.Bind(forms.UpdateGlobalRepoForm{}), admin.UpdateRepoPost) }) m.Group("/packages", func() { diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 4d51a36ca3..b4999c34a5 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -45,7 +45,7 @@ type CreateRepoForm struct { ObjectFormatName string } -type UpdateGlobalRepoFrom struct { +type UpdateGlobalRepoForm struct { GitSizeMax string `form:"GitSizeMax"` LFSSizeMax string `form:"LFSSizeMax"` }