Skip to content

Commit

Permalink
chore: comments addressed+1
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 committed Nov 1, 2023
1 parent f4d14d0 commit 7c17901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v0/destinations/am/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ const responseBuilderSimple = (
const oldKeys = Object.keys(campaign);
// appends utm_ prefix to all the keys of campaign object. For example the `name` key in campaign object will be changed to `utm_name`
oldKeys.forEach((oldKey) => {
Object.assign(campaign, { [`utm_${oldKey}`]: campaign[oldKey] });
campaign[`utm_${oldKey}`] = campaign[oldKey];
delete campaign[oldKey];
});

Expand Down Expand Up @@ -889,7 +889,7 @@ const batch = (destEvents) => {
*/
if (checkForJSONAndUserIdLengthAndDeviceId(jsonBody, userId, deviceId)) {
response = defaultBatchRequestConfig();
Object.assign(response, { batchedRequest: message });
response.batchedRequest = message;
response.metadata = [metadata];
response.destination = destinationObject;
respList.push(response);
Expand Down

0 comments on commit 7c17901

Please sign in to comment.