From c40582704303c30c3481c57bf3c561eb0235afce Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Sun, 19 Feb 2023 13:34:52 +0900 Subject: [PATCH] Update routers/api/v1/org/team.go --- routers/api/v1/org/team.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }