Skip to content

Commit

Permalink
Add id to the POST request to enable applications to add a browserUrl…
Browse files Browse the repository at this point in the history
… to render the email (#69)
  • Loading branch information
raphaelblum authored Aug 9, 2024
1 parent 3db131d commit 3407537
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-pots-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/brevo-api": minor
---

Add `id` to the POST request to the mailing frontend, enabling applications to use the `id` to generate a `browserUrl` for rendering the email in a web browser.
2 changes: 1 addition & 1 deletion packages/api/src/email-campaign/email-campaigns.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class EmailCampaignsService {

const { data: htmlContent, status } = await this.httpService.axiosRef.post(
this.config.emailCampaigns.frontend.url,
{ title: campaign.title, content, scope: campaign.scope },
{ id: campaign.id, title: campaign.title, content, scope: campaign.scope },
{
headers: { "Content-Type": "application/json" },
auth: {
Expand Down

0 comments on commit 3407537

Please sign in to comment.