From cffca9f6cea288304b7ffb70bb9ce88c316fa558 Mon Sep 17 00:00:00 2001 From: Utsab Chowdhury Date: Tue, 30 Apr 2024 13:37:21 +0530 Subject: [PATCH] fix: braze handle null for non billable attributes --- src/v0/destinations/braze/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v0/destinations/braze/util.js b/src/v0/destinations/braze/util.js index 060756ce8e..ce83ebc244 100644 --- a/src/v0/destinations/braze/util.js +++ b/src/v0/destinations/braze/util.js @@ -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 @@ -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]; } });