Skip to content

Commit

Permalink
fix(customeradministration): change OrganizationTargetIdInput to ha…
Browse files Browse the repository at this point in the history
…ve a pointer (#1173)

Co-authored-by: pranav-new-relic <[email protected]>
  • Loading branch information
kporras07 and pranav-new-relic authored Jun 12, 2024
1 parent 2fb027e commit ca1300f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .tutone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,10 @@ packages:
field_type_override: "*OrganizationNameInput"
- name: OrganizationOrganizationIdInput
field_type_override: "*OrganizationOrganizationIdInput"
#####
# overrides associated with query 'GetAccountShares'
- name: OrganizationTargetIdInput
field_type_override: "*OrganizationTargetIdInput"

- name: ID
field_type_override: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestIntegrationCustomerAdministration_GetAccountShares(t *testing.T) {
"",
OrganizationAccountShareFilterInput{
AccountID: OrganizationAccountIdInput{Eq: mock.IntegrationTestAccountID},
TargetId: OrganizationTargetIdInput{},
TargetId: &OrganizationTargetIdInput{},
},
[]OrganizationAccountShareSortInput{},
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/customeradministration/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ type OrganizationAccountShareFilterInput struct {
// Filter by account id
AccountID OrganizationAccountIdInput `json:"accountId,omitempty"`
// Filter by target id
TargetId OrganizationTargetIdInput `json:"targetId,omitempty"`
TargetId *OrganizationTargetIdInput `json:"targetId,omitempty"`
}

// OrganizationAccountShareLimitingRoleWrapper - An account share's limiting role
Expand Down

0 comments on commit ca1300f

Please sign in to comment.