Skip to content

Commit

Permalink
feat: review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravudia committed Feb 1, 2024
1 parent cdc1c10 commit b138233
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const validateInput = (message) => {
}

if (!message.event) {
throw new InstrumentationError('Event is not present. Aborting.');
throw new InstrumentationError('Event name is not present. Aborting.');
}
};

Expand Down
7 changes: 7 additions & 0 deletions src/cdk/v2/destinations/the_trade_desk/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,13 @@ const getPrivacySetting = (message) => {
return integrationObj?.privacy_settings;
};

/**
* Enriches the track payload with extra properties present in 'properties' other than the ones defined in TTDCommonConfig.json and TTDItemConfig.json
*
* @param {Object} message - The message object containing the event information.
* @param {Object} payload - The payload object to be enriched.
* @returns {Object} - The enriched payload object.
*/
const enrichTrackPayload = (message, payload) => {
let rawPayload = { ...payload };
const eventsMapInfo = ECOMM_EVENT_MAP[message.event.toLowerCase()];
Expand Down
1 change: 1 addition & 0 deletions src/constants/destinationCanonicalNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const DestCanonicalNames = {
'thetradedesk',
'theTradeDesk',
'TheTradeDesk',
'the trade desk',
],
};

Expand Down

0 comments on commit b138233

Please sign in to comment.