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 /services | |
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 'services')
-rw-r--r-- | services/convert/convert.go | 2 |
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 } |