diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index f92556227cb8b..0c6926759a768 100644 --- a/routers/api/v1/org/team.go +++ b/routers/api/v1/org/team.go @@ -256,7 +256,7 @@ func EditTeam(ctx *context.APIContext) { form := web.GetForm(ctx).(*api.EditTeamOption) team := ctx.Org.Team - if err := team.LoadUnits(ctx.Context); err != nil { + if err := team.LoadUnits(ctx); err != nil { ctx.InternalServerError(err) return }