Skip to content

Commit 3f88185

Browse files
authored
fix: update app settings (#86)
1 parent ccf3892 commit 3f88185

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/stream-chat/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def create_token(user_id, exp = nil, iat = nil)
100100

101101
sig { params(settings: T.untyped).returns(StreamChat::StreamResponse) }
102102
def update_app_settings(**settings)
103-
patch('app', params: settings)
103+
patch('app', data: settings)
104104
end
105105

106106
sig { returns(StreamChat::StreamResponse) }

spec/client_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ def loop_times(times)
9797
expect(response).to include 'app'
9898
end
9999

100+
it 'updates application settings' do
101+
response = @client.update_app_settings(enforce_unique_usernames: 'no')
102+
expect(response.status_code).to be 200
103+
end
104+
100105
it 'updates a user' do
101106
user = { id: SecureRandom.uuid }
102107
response = @client.update_user(user)

0 commit comments

Comments
 (0)