Skip to content

Commit

Permalink
Update lib/auth0/api/v2/organizations.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Rita Zerrizuela <[email protected]>
  • Loading branch information
adamjmcgrath and Widcket authored Nov 10, 2023
1 parent 1313223 commit 6f31af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth0/api/v2/organizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def create_organizations_client_grant(organization_id, grant_id)
# @param grant_id [string] The Client Grant ID you want to remove from the Organization.
def delete_organizations_client_grant(organization_id, grant_id)
raise Auth0::MissingOrganizationId, 'Must supply a valid organization_id' if organization_id.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply a valid grant_id' if grant_id.empty?
raise Auth0::InvalidParameter, 'Must supply a valid grant_id' if grant_id.to_s.empty?

path = "#{organizations_path}/#{organization_id}/client-grants/#{grant_id}"
delete(path)
Expand Down

0 comments on commit 6f31af5

Please sign in to comment.