Skip to content

Commit

Permalink
fix: Update creator_role type
Browse files Browse the repository at this point in the history
  • Loading branch information
mzhong9723 committed Nov 8, 2023
1 parent d0cd86b commit b6c6bd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clerk/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ type UpdateOrganizationSettingsParams struct {
AdminDeleteEnabled *bool `json:"admin_delete_enabled,omitempty"`
DomainsEnabled *bool `json:"domains_enabled,omitempty"`
DomainsEnrollmentModes []string `json:"domains_enrollment_modes,omitempty"`
CreatorRole string `json:"creator_role,omitempty"`
CreatorRole *string `json:"creator_role,omitempty"`
}

func (s *InstanceService) UpdateOrganizationSettings(params UpdateOrganizationSettingsParams) (*OrganizationSettingsResponse, error) {
Expand Down
2 changes: 1 addition & 1 deletion clerk/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func TestInstanceService_UpdateOrganizationSettings_happyPath(t *testing.T) {
defaultCreatorRole := "org:custom_admin"
got, _ := client.Instances().UpdateOrganizationSettings(UpdateOrganizationSettingsParams{
Enabled: &enabled,
CreatorRole: defaultCreatorRole,
CreatorRole: &defaultCreatorRole,
})

assert.Equal(t, &organizationSettingsResponse, got)
Expand Down

0 comments on commit b6c6bd2

Please sign in to comment.