Skip to content

Commit

Permalink
chore: small commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Feb 6, 2024
1 parent a4c6a05 commit 6dcb60b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"destKey": "properties.distinct_id",
"sourceKeys": ["userId", "anonymousId", "email"],
"sourceKeys": ["email"],
"required": true
},
{
Expand Down Expand Up @@ -60,4 +60,3 @@
"required": false
}
]

7 changes: 6 additions & 1 deletion src/v0/destinations/bluecore/data/bluecoreTrackConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
"destKey": "properties.device",
"sourceKeys": "context.device.model",
"required": false
}
},
{
"destKey": "properties.products",
"sourceKeys": "properties.products",
"required": false
}
]

4 changes: 1 addition & 3 deletions src/v0/destinations/bluecore/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const { getHashFromArrayWithDuplicate, isDefinedAndNotNull, ConfigurationError,
}

const payload = constructPayload(message, MAPPING_CONFIG[category.name]);
// TODO: add support for product array
payload.event = eventName;
verifyTrackPayload(payload);
payload.token = Config.bluecoreNamespace;
Expand All @@ -87,9 +88,6 @@ const { getHashFromArrayWithDuplicate, isDefinedAndNotNull, ConfigurationError,
return payload;
};

// const identifyResponseBuilder = async (message, category, { Config }) => {

// }

const responseBuilderSimple = (response) => {
const resp = defaultRequestConfig();
Expand Down

0 comments on commit 6dcb60b

Please sign in to comment.