Skip to content

Commit

Permalink
Fix bug - update campaign HTML for all campaigns
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcL committed Nov 6, 2019
1 parent 6afb366 commit 1ed327c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/createMailchimpCampaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ const createMailchimpCampaign = async options => {

if (!campaign) {
campaign = await mailchimp.createCampaign(campaignOptions);
} else {
await mailchimp.updateCampaignHtml({
...campaignOptions,
id: campaign.id,
});
}

await mailchimp.updateCampaignHtml({
...campaignOptions,
id: campaign.id,
});

return campaign;
};

Expand Down

0 comments on commit 1ed327c

Please sign in to comment.