Skip to content

Commit ec75674

Browse files
committed
Go back to previous endpoint
1 parent fe06caf commit ec75674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/connector/team.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (o *teamResourceType) List(ctx context.Context, parentID *v2.ResourceId, pt
104104
}
105105

106106
for _, team := range teams {
107-
fullTeam, _, err := o.client.Teams.GetTeamBySlug(ctx, orgName, fmt.Sprintf("%v", team.GetName()))
107+
fullTeam, _, err := o.client.Teams.GetTeamByID(ctx, orgID, team.GetID())
108108
if err != nil {
109109
if isNotFoundError(resp) {
110110
return nil, "", nil, uhttp.WrapErrors(codes.NotFound, fmt.Sprintf("team: %d not found", team.GetID()))

0 commit comments

Comments
 (0)