diff options
author | yp05327 | 2023-02-19 17:31:39 +0900 |
---|---|---|
committer | GitHub | 2023-02-19 16:31:39 +0800 |
commit | 7eaf192967b7eec9598e296f2919c96e4e88d324 (patch) | |
tree | e1a574498eb290bf5766f86f25da85adaa5286a2 /routers | |
parent | 61b89747ed54e17ab5c7730adbad1c5d4d5ff78a (diff) |
Rename `GetUnits` to `LoadUnits` (#22970)
Same as https://github.com/go-gitea/gitea/pull/22967
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/org/team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index 686e48ece..0c6926759 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.GetUnits(); err != nil { + if err := team.LoadUnits(ctx); err != nil { ctx.InternalServerError(err) return } |