File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/plugins/plugin-braze/src/methods Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ describe('#track', () => {
245
245
revenue : '399.99' ,
246
246
products : [
247
247
{
248
- productId : '123' ,
248
+ product_id : '123' ,
249
249
price : '399.99' ,
250
250
quantity : 4 ,
251
251
} ,
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ export default (payload: TrackEventType) => {
42
42
43
43
products . forEach ( ( product ) => {
44
44
const productDict = Object . assign ( { } , product ) ;
45
- const productId = productDict . productId ;
45
+ const productId = productDict . product_id ;
46
46
const productRevenue = extractRevenue ( productDict , 'price' ) ;
47
47
const productQuantity = productDict . quantity ;
48
- delete productDict . productId ;
48
+ delete productDict . product_id ;
49
49
delete productDict . price ;
50
50
delete productDict . quantity ;
51
51
let productProperties = Object . assign (
You can’t perform that action at this time.
0 commit comments