Skip to content

Commit

Permalink
fix(destination): do not update event properties to lowercase in hubs…
Browse files Browse the repository at this point in the history
…pot (#1559)

* fix(destination): do not update event properties to lowercase
Co-authored-by: Sai Kumar Battinoju <[email protected]>
  • Loading branch information
ItsSudip authored Nov 10, 2022
1 parent 144793e commit e41b37f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions __tests__/data/hs_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@
"properties": {
"user_actual_role": "system_admin, system_user",
"user_actual_id": 12345,
"revenue": 100
"Revenue": 100
},
"sentAt": "2019-10-14T11:15:53.296Z"
},
Expand Down Expand Up @@ -1871,7 +1871,7 @@
},
"event": "Purchase",
"properties": {
"revenue": "name1"
"Revenue": "name1"
}
},
"destination": {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/data/hs_router_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
},
"event": "Purchase",
"properties": {
"revenue": "name1"
"Revenue": "name1"
}
},
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion v0/destinations/hs/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ const getEventAndPropertiesFromConfig = (message, destination, payload) => {
}

// 2. fetch event properties from webapp config
eventProperties = getHashFromArray(eventProperties);
eventProperties = getHashFromArray(eventProperties, ...Array(2), false);

Object.keys(eventProperties).forEach(key => {
const value = get(message, `properties.${key}`);
Expand Down

0 comments on commit e41b37f

Please sign in to comment.