Skip to content

Commit

Permalink
fix: list invitations response check (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
radekska authored Oct 21, 2024
1 parent 0121ed0 commit 514b7cc
Show file tree
Hide file tree
Showing 4 changed files with 838 additions and 55 deletions.
3 changes: 2 additions & 1 deletion castai/resource_organization_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ func resourceOrganizationMembersRead(ctx context.Context, data *schema.ResourceD
invitationsResp, err := client.UsersAPIListInvitationsWithResponse(ctx, &sdk.UsersAPIListInvitationsParams{
PageCursor: &nextCursor,
})
if err := sdk.CheckOKResponse(usersResp, err); err != nil {

if err := sdk.CheckOKResponse(invitationsResp, err); err != nil {
return diag.FromErr(fmt.Errorf("retrieving pending invitations: %w", err))
}

Expand Down
117 changes: 79 additions & 38 deletions castai/sdk/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 514b7cc

Please sign in to comment.