Skip to content

Commit 84e5ef1

Browse files
committed
Add type
1 parent 53d5967 commit 84e5ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optimizely/cmab/cmab_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def fetch_decision(rule_id, user_id, attributes, cmab_uuid, timeout: MAX_WAIT_TI
6262
# Returns:
6363
# The variation ID.
6464
url = "https://prediction.cmab.optimizely.com/predict/#{rule_id}"
65-
cmab_attributes = attributes.map { |key, value| {id: key, value: value} }
65+
cmab_attributes = attributes.map { |key, value| {id: key, value: value, type: 'custom_attribute'} }
6666

6767
request_body = {
6868
instances: [{

0 commit comments

Comments
 (0)