Skip to content

Commit

Permalink
fix: braze handle null for non billable attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Apr 30, 2024
1 parent 60e7ab1 commit cffca9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v0/destinations/braze/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const {
const { JSON_MIME_TYPE, HTTP_STATUS_CODES } = require('../../util/constant');
const { isObject } = require('../../util');
const { removeUndefinedValues, getIntegrationsObj } = require('../../util');
const { InstrumentationError } = require('@rudderstack/integrations-lib');
const { InstrumentationError, isDefined } = require('@rudderstack/integrations-lib');

const getEndpointFromConfig = (destination) => {
// Init -- mostly for test cases
Expand Down Expand Up @@ -294,7 +294,7 @@ const BrazeDedupUtility = {

// add non billable attributes back to the deduplicated user object
BRAZE_NON_BILLABLE_ATTRIBUTES.forEach((key) => {
if (isDefinedAndNotNull(userData[key])) {
if (isDefined(userData[key])) {
deduplicatedUserData[key] = userData[key];
}
});
Expand Down

0 comments on commit cffca9f

Please sign in to comment.