Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update payouts-item-succeeded.ts

Kiran K96c7b51c8b87
diff --git a/apps/web/app/(ee)/api/paypal/webhook/payouts-item-succeeded.ts b/apps/web/app/(ee)/api/paypal/webhook/payouts-item-succeeded.ts
index dbdd5fb1ab..52fc4ef296 100644
--- a/apps/web/app/(ee)/api/paypal/webhook/payouts-item-succeeded.ts
+++ b/apps/web/app/(ee)/api/paypal/webhook/payouts-item-succeeded.ts
@@ -60,21 +60,22 @@ export async function payoutsItemSucceeded(event: any) {
},
}),
- payout.partner.email &&
- sendEmail({
- subject: "You've been paid!",
- email: payout.partner.email,
- react: PartnerPayoutSent({
- email: payout.partner.email,
- program: payout.program,
- payout: {
- id: payout.id,
- amount: payout.amount,
- startDate: payout.periodStart,
- endDate: payout.periodEnd,
- },
- }),
- variant: "notifications",
- }),
+ // TODO
+ // Fix this after finalizing the email templates
+ // payout.partner.email &&
+ // sendEmail({
+ // subject: "You've been paid!",
+ // email: payout.partner.email,
+ // react: PartnerPayoutSent({
+ // email: payout.partner.email,
+ // payout: {
+ // id: payout.id,
+ // amount: payout.amount,
+ // startDate: payout.periodStart,
+ // endDate: payout.periodEnd,
+ // },
+ // }),
+ // variant: "notifications",
+ // }),
]);
}