Skip to content

Commit

Permalink
Merge branch 'develop' into fix.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 authored Dec 26, 2023
2 parents 92b10f1 + 429ca71 commit 09425e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/v0/destinations/am/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '-']));
}

Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/tiktok_ads/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const getContents = (message) => {
price: product.price,
quantity: product.quantity,
description: product.description,
brand: product.brand
};
contents.push(removeUndefinedAndNullValues(singleProduct));
});
Expand Down
2 changes: 2 additions & 0 deletions test/integrations/destinations/tiktok_ads/processor/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -4618,6 +4619,7 @@ export const data = [
content_name: 'Monopoly',
price: 14,
quantity: 1,
brand:"brand_name"
},
{
content_type: 'product_group',
Expand Down

0 comments on commit 09425e8

Please sign in to comment.