Skip to content

Commit

Permalink
mailersend: merge receipt templates into one
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Dec 3, 2024
1 parent 2ecba16 commit f396798
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/donation/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ export async function sendMembershipEmail(donation: DonationToEmail) {
{
email: donation.email,
data: {
donation_id: donation.id,
subject_prefix:
process.env.VERCEL_ENV === "production" ? "" : "DEV: ",
donation_id: donation.id,
recipient: donation.recipient,
},
},
]);
Expand Down Expand Up @@ -80,14 +81,15 @@ export async function sendPaymentEmail(
{
email: donation.email,
data: {
amount: donation.amount.toLocaleString("da-DK"),
subject_prefix:
process.env.VERCEL_ENV === "production" ? "" : "DEV: ",
donation_id: donation.id,
recipient: donation.recipient,

amount: donation.amount.toLocaleString("da-DK"),
frequency: donation.frequency,
tax_deductible: donation.tax_deductible,
recipient: donation.recipient,
bank_msg: bank?.msg ?? null,
subject_prefix:
process.env.VERCEL_ENV === "production" ? "" : "DEV: ",
},
},
]);
Expand Down

0 comments on commit f396798

Please sign in to comment.