Skip to content

Commit

Permalink
fix: Fix ProductActions getting mapped to PromotionActions (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannsa authored Sep 29, 2022
1 parent 8f7c7b7 commit 85ab4c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ private static CommerceEvent ConvertCommerceEvent(JSONObject map) throws JSONExc

if (isProductAction) {
int productActionInt = map.getInt("productActionType");
String productAction = ConvertPromotionActionType(productActionInt);
String productAction = ConvertProductActionType(productActionInt);
JSONArray productsArray = map.getJSONArray("products");
JSONObject productMap = productsArray.getJSONObject(0);
Product product = ConvertProduct(productMap);
Expand Down

0 comments on commit 85ab4c7

Please sign in to comment.