Skip to content

Commit 74739e5

Browse files
authored
Increase convenience of query members (#36)
1 parent ae044c2 commit 74739e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ chan.unban_user('bob-1')
132132
chan.query({'messages' => { 'limit' => 10, 'id_lte' => m1['id']}})
133133

134134
# Query channel members
135-
chan.query_members({name: {'$autocomplete': 'test'}}, {last_created_at: -1}, offset: 5, limit: 5)
135+
chan.query_members({name: {'$autocomplete': 'test'}}, sort: {last_created_at: -1}, offset: 5, limit: 5)
136136
```
137137

138138
### Messages

lib/stream-chat/channel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def query(**options)
6161
state
6262
end
6363

64-
def query_members(filter_conditions: {}, sort: nil, **options)
64+
def query_members(filter_conditions = {}, sort: nil, **options)
6565
params = {}.merge(options).merge({
6666
id: @id,
6767
type: @channel_type,

0 commit comments

Comments
 (0)