Skip to content

Commit

Permalink
STRATCONN-2828 Pinterest custom data value incorrect. (#1367)
Browse files Browse the repository at this point in the history
* STRATCONN-2828 changed custom data value number to string

* Removed datatypes form properties and cascating when we are sending data to pinterest

* removed test case

* snapshorts of testcase added

---------

Co-authored-by: Ankit Gupta <[email protected]>
  • Loading branch information
AnkitUnthinkable and AnkitSegment authored Jul 20, 2023
1 parent 7e1cc04 commit 85354d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Object {
"opt_out_type": undefined,
"order_id": undefined,
"search_string": undefined,
"value": undefined,
"value": "undefined",
},
"device_brand": undefined,
"device_carrier": undefined,
Expand Down Expand Up @@ -92,7 +92,7 @@ Object {
"opt_out_type": undefined,
"order_id": undefined,
"search_string": undefined,
"value": undefined,
"value": "undefined",
},
"device_brand": undefined,
"device_carrier": undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function createPinterestPayload(payload: Payload) {
user_data: hash_user_data({ user_data: payload.user_data }),
custom_data: {
currency: payload?.custom_data?.currency,
value: payload?.custom_data?.value,
value: String(payload?.custom_data?.value),
content_ids: payload.custom_data?.content_ids,
contents: payload.custom_data?.contents,
num_items: payload.custom_data?.num_items,
Expand Down

0 comments on commit 85354d0

Please sign in to comment.