The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
remove accountUpdateUrl, remove status: "sent" filter
Steven Tey8545c85c2711
diff --git a/apps/web/app/(ee)/api/cron/payouts/payout-paid/route.ts b/apps/web/app/(ee)/api/cron/payouts/payout-paid/route.tsindex 7eaf62f95a..4dc92c3a9d 100644--- a/apps/web/app/(ee)/api/cron/payouts/payout-paid/route.ts+++ b/apps/web/app/(ee)/api/cron/payouts/payout-paid/route.ts@@ -45,7 +45,6 @@ export async function POST(req: Request) {const updatedPayouts = await prisma.payout.updateMany({where: {- status: "sent",stripePayoutId: stripePayout.id,},data: {diff --git a/apps/web/app/(ee)/api/stripe/connect/webhook/payout-failed.ts b/apps/web/app/(ee)/api/stripe/connect/webhook/payout-failed.tsindex 2e79ca513e..68543590bd 100644--- a/apps/web/app/(ee)/api/stripe/connect/webhook/payout-failed.ts+++ b/apps/web/app/(ee)/api/stripe/connect/webhook/payout-failed.ts@@ -29,7 +29,6 @@ export async function payoutFailed(event: Stripe.Event) {const updatedPayouts = await prisma.payout.updateMany({where: {- status: "sent",stripePayoutId: stripePayout.id,},data: {@@ -44,9 +43,6 @@ export async function payoutFailed(event: Stripe.Event) {if (partner.email) {try {- // Generate Stripe account link for updating bank account- const { url } = await stripe.accounts.createLoginLink(stripeConnectId);-// Fetch bank account informationconst { data: externalAccounts } =await stripe.accounts.listExternalAccounts(stripeConnectId);@@ -73,7 +69,6 @@ export async function payoutFailed(event: Stripe.Event) {to: partner.email,react: PartnerStripePayoutFailed({email: partner.email,- accountUpdateUrl: url,bankAccount,payout: {amount: stripePayout.amount,diff --git a/packages/email/src/templates/partner-stripe-payout-failed.tsx b/packages/email/src/templates/partner-stripe-payout-failed.tsxindex e8526d66c9..5778f687ca 100644--- a/packages/email/src/templates/partner-stripe-payout-failed.tsx+++ b/packages/email/src/templates/partner-stripe-payout-failed.tsx@@ -19,7 +19,6 @@ import { Footer } from "../components/footer";// Send this email to the partner when the Stripe payout failsexport default function PartnerStripePayoutFailed({email = "[email protected]",- accountUpdateUrl = "https://partners.dub.co/payouts",payout = {amount: 530000,currency: "usd",@@ -34,7 +33,6 @@ export default function PartnerStripePayoutFailed({},}: {email: string;- accountUpdateUrl: string;payout: {amount: number; // in centscurrency: string;@@ -142,7 +140,7 @@ export default function PartnerStripePayoutFailed({<Section className="my-8"><LinkclassName="rounded-lg bg-neutral-900 px-6 py-3 text-[13px] font-medium text-white no-underline"- href={accountUpdateUrl}+ href="https://partners.dub.co/payouts">Update bank account</Link>