From 7eaf192967b7eec9598e296f2919c96e4e88d324 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Sun, 19 Feb 2023 17:31:39 +0900 Subject: Rename `GetUnits` to `LoadUnits` (#22970) Same as https://github.com/go-gitea/gitea/pull/22967 --------- Co-authored-by: Lunny Xiao --- services/convert/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/convert/convert.go') diff --git a/services/convert/convert.go b/services/convert/convert.go index 16daad849b..5f2100a039 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 } -- cgit v1.2.3