@@ -109,7 +109,7 @@ def wait_for_task(task_id, timeout_seconds: 120)
109109 response = @client . update_channels_batch (
110110 {
111111 operation : 'addMembers' ,
112- filter : { cid : { '$in' => [ @channel1 . cid , @channel2 . cid ] } } ,
112+ filter : { cids : { '$in' => [ @channel1 . cid , @channel2 . cid ] } } ,
113113 members : [ { 'user_id' => @random_users [ 0 ] [ :id ] } ]
114114 }
115115 )
@@ -125,7 +125,7 @@ def wait_for_task(task_id, timeout_seconds: 120)
125125 member_ids = @random_users . map { |u | u [ :id ] }
126126 members = member_ids . map { |id | { 'user_id' => id } }
127127 response = updater . add_members (
128- { cid : { '$in' => [ @channel1 . cid , @channel2 . cid ] } } ,
128+ { cids : { '$in' => [ @channel1 . cid , @channel2 . cid ] } } ,
129129 members
130130 )
131131
@@ -186,7 +186,7 @@ def wait_for_task(task_id, timeout_seconds: 120)
186186 member_to_remove = members_to_add [ 0 ]
187187
188188 response = updater . remove_members (
189- { cid : { '$in' => [ @channel1 . cid , @channel2 . cid ] } } ,
189+ { cids : { '$in' => [ @channel1 . cid , @channel2 . cid ] } } ,
190190 [ { 'user_id' => member_to_remove } ]
191191 )
192192
@@ -233,7 +233,7 @@ def wait_for_task(task_id, timeout_seconds: 120)
233233 member_to_archive = members_to_add [ 0 ]
234234
235235 response = updater . archive (
236- { cid : { '$in' => [ @channel1 . cid , @channel2 . cid ] } } ,
236+ { cids : { '$in' => [ @channel1 . cid , @channel2 . cid ] } } ,
237237 [ { 'user_id' => member_to_archive } ]
238238 )
239239
0 commit comments