aboutsummaryrefslogtreecommitdiff
path: root/routers
diff options
context:
space:
mode:
authoryp053272023-02-19 17:31:39 +0900
committerGitHub2023-02-19 16:31:39 +0800
commit7eaf192967b7eec9598e296f2919c96e4e88d324 (patch)
treee1a574498eb290bf5766f86f25da85adaa5286a2 /routers
parent61b89747ed54e17ab5c7730adbad1c5d4d5ff78a (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.go2
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
}