Skip to content

Commit

Permalink
fix: awin product_id mapping backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Apr 17, 2024
1 parent ec3eda8 commit b5a5ef6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/v0/destinations/awin/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ const trackProduct = (properties, advertiserId, commissionParts) => {
productsArray.forEach((product) => {
const productPayloadNew = {
advertiserId,
orderReference: properties.order_id || properties.orderId,
orderReference:
properties.order_id ||
properties.orderId ||
properties.orderReference ||
properties.order_reference,

Check warning on line 61 in src/v0/destinations/awin/utils.js

View check run for this annotation

Codecov / codecov/patch

src/v0/destinations/awin/utils.js#L59-L61

Added lines #L59 - L61 were not covered by tests
productId: product.product_id || product.productId,
productName: product.name,
productItemPrice: product.price,
Expand Down

0 comments on commit b5a5ef6

Please sign in to comment.