Skip to content

Commit

Permalink
update drip campaign fields
Browse files Browse the repository at this point in the history
  • Loading branch information
arajguha committed Aug 11, 2021
1 parent 6dedc31 commit e434e65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integrations/Drip/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ class Drip {
getDestinationExternalID(message, "dripCampaignId") || this.campaignId;

if (campaignId) {
const fields = get(message, "context.traits");
// const fields = get(message, "context.traits");
const fields = payload;
delete fields.campaignId;
delete fields.doubleOptin;
delete fields.tags;

let campaignPayload = {
fields,
Expand Down

0 comments on commit e434e65

Please sign in to comment.