Skip to content

Commit

Permalink
chore(release): pull hotfix-release/v1.29.2 into main (#2212)
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc authored May 26, 2023
2 parents de91865 + 2343d87 commit c128bd2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.29.2](https://github.com/rudderlabs/rudder-transformer/compare/v1.29.1...v1.29.2) (2023-05-26)


### Bug Fixes

* braze dedup ([#2211](https://github.com/rudderlabs/rudder-transformer/issues/2211)) ([86a9d25](https://github.com/rudderlabs/rudder-transformer/commit/86a9d255f16409902e4d881ded7c876782d3311b))

### [1.29.1](https://github.com/rudderlabs/rudder-transformer/compare/v1.29.0...v1.29.1) (2023-05-25)


Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rudder-transformer",
"version": "1.29.1",
"version": "1.29.2",
"description": "",
"homepage": "https://github.com/rudderlabs/rudder-transformer#readme",
"bugs": {
Expand Down
16 changes: 10 additions & 6 deletions src/v0/destinations/braze/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const {
getTrackEndPoint,
} = require('./config');
const { JSON_MIME_TYPE } = require('../../util/constant');
const { isObject } = require('../../util');
const { removeUndefinedValues } = require('../../util');

const getEndpointFromConfig = (destination) => {
// Init -- mostly for test cases
Expand Down Expand Up @@ -257,14 +259,16 @@ const BrazeDedupUtility = {
const keys = Object.keys(userData)
.filter((key) => !excludeKeys.includes(key))
.filter((key) => !BRAZE_NON_BILLABLE_ATTRIBUTES.includes(key))
.filter(
(key) =>
!(
.filter((key) => {
if (isObject(userData[key])) {
return !(
Object.keys(userData[key]).includes('$add') ||
Object.keys(userData[key]).includes('$update') ||
Object.keys(userData[key]).includes('$remove')
),
);
);
}
return true;
});

if (keys.length === 0) {
return null;
Expand All @@ -286,7 +290,7 @@ const BrazeDedupUtility = {
};
const identifier = external_id || user_alias.alias_name;
store.set(identifier, { ...storedUserData, ...deduplicatedUserData });
return removeUndefinedAndNullValues(deduplicatedUserData);
return removeUndefinedValues(deduplicatedUserData);
},
};

Expand Down

0 comments on commit c128bd2

Please sign in to comment.