diff --git a/src/v0/destinations/am/utils.js b/src/v0/destinations/am/utils.js index 84cf1cb675..71fe0ab459 100644 --- a/src/v0/destinations/am/utils.js +++ b/src/v0/destinations/am/utils.js @@ -102,7 +102,7 @@ const getEventId = (payload, sourceKey) => { const getUnsetObj = (message) => { const fieldsToUnset = get(message, 'integrations.Amplitude.fieldsToUnset'); let unsetObject; - if (fieldsToUnset && Array.isArray(fieldsToUnset)) { + if (Array.isArray(fieldsToUnset)) { unsetObject = Object.fromEntries(fieldsToUnset.map((field) => [field, '-'])); } diff --git a/src/v0/destinations/tiktok_ads/util.js b/src/v0/destinations/tiktok_ads/util.js index 4050a9fe34..dbc8b344fc 100644 --- a/src/v0/destinations/tiktok_ads/util.js +++ b/src/v0/destinations/tiktok_ads/util.js @@ -21,6 +21,7 @@ const getContents = (message) => { price: product.price, quantity: product.quantity, description: product.description, + brand: product.brand }; contents.push(removeUndefinedAndNullValues(singleProduct)); }); diff --git a/test/integrations/destinations/tiktok_ads/processor/data.ts b/test/integrations/destinations/tiktok_ads/processor/data.ts index 4a6a4bd812..76a4a1ca89 100644 --- a/test/integrations/destinations/tiktok_ads/processor/data.ts +++ b/test/integrations/destinations/tiktok_ads/processor/data.ts @@ -4541,6 +4541,7 @@ export const data = [ category: 'Games', url: 'https://www.website.com/product/path', image_url: 'https://www.website.com/product/path.jpg', + brand:"brand_name" }, { product_id: '345', @@ -4618,6 +4619,7 @@ export const data = [ content_name: 'Monopoly', price: 14, quantity: 1, + brand:"brand_name" }, { content_type: 'product_group',