aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authoryp053272023-02-19 17:31:39 +0900
committerGitHub2023-02-19 16:31:39 +0800
commit7eaf192967b7eec9598e296f2919c96e4e88d324 (patch)
treee1a574498eb290bf5766f86f25da85adaa5286a2 /services
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 'services')
-rw-r--r--services/convert/convert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/convert/convert.go b/services/convert/convert.go
index 16daad849..5f2100a03 100644
--- a/services/convert/convert.go
+++ b/services/convert/convert.go
@@ -304,7 +304,7 @@ func ToTeams(ctx context.Context, teams []*organization.Team, loadOrgs bool) ([]
cache := make(map[int64]*api.Organization)
apiTeams := make([]*api.Team, len(teams))
for i := range teams {
- if err := teams[i].GetUnits(); err != nil {
+ if err := teams[i].LoadUnits(ctx); err != nil {
return nil, err
}