lib/workos/user_management.rb in workos-3.1.0 vs lib/workos/user_management.rb in workos-4.0.0
- old
+ new
@@ -155,10 +155,11 @@
params(
options: T::Hash[Symbol, String],
).returns(WorkOS::Types::ListStruct)
end
def list_users(options = {})
+ options[:order] ||= 'desc'
response = execute_request(
request: get_request(
path: '/user_management/users',
auth: true,
params: options,
@@ -781,10 +782,11 @@
params(
options: T::Hash[Symbol, String],
).returns(WorkOS::Types::ListStruct)
end
def list_organization_memberships(options = {})
+ options[:order] ||= 'desc'
response = execute_request(
request: get_request(
path: '/user_management/organization_memberships',
auth: true,
params: options,
@@ -887,9 +889,10 @@
params(
options: T::Hash[Symbol, String],
).returns(WorkOS::Types::ListStruct)
end
def list_invitations(options = {})
+ options[:order] ||= 'desc'
response = execute_request(
request: get_request(
path: '/user_management/invitations',
auth: true,
params: options,