Skip to content

Commit 449faeb

Browse files
committed
fix rubocop errors
1 parent 67d16ed commit 449faeb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/stream-chat/client.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,14 @@ def submit_action(action_type, item_id, **options)
201201
# @param [Hash] options Additional options
202202
# @option options [Boolean] :force_sync Force synchronous check
203203
sig { params(entity_type: String, entity_id: String, entity_creator_id: String, moderation_payload: T.untyped, config_key: String, options: T.untyped).returns(StreamChat::StreamResponse) }
204-
def check(entity_type, entity_id, entity_creator_id, moderation_payload, config_key, **options)
204+
def check(params = {})
205+
entity_type = params[:entity_type]
206+
entity_id = params[:entity_id]
207+
entity_creator_id = params[:entity_creator_id]
208+
moderation_payload = params[:moderation_payload]
209+
config_key = params[:config_key]
210+
options = params[:options] || {}
211+
205212
@client.post('api/v2/moderation/check', data: {
206213
entity_type: entity_type,
207214
entity_id: entity_id,

0 commit comments

Comments
 (0)