The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix paypal payouts retry flow
Steven Tey2754ddddd7ee
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.tsindex 059c794a82..136caf69f9 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@@ -59,6 +59,7 @@ export async function payoutsItemSucceeded(event: any) {paypalTransferId: payoutItemId,status: "completed",paidAt: payout.paidAt ?? new Date(), // preserve the paidAt if it already exists+ failureReason: null,},}),diff --git a/apps/web/lib/actions/partners/retry-failed-paypal-payouts.ts b/apps/web/lib/actions/partners/retry-failed-paypal-payouts.tsindex ed483d3ad0..d09a0980ef 100644--- a/apps/web/lib/actions/partners/retry-failed-paypal-payouts.ts+++ b/apps/web/lib/actions/partners/retry-failed-paypal-payouts.ts@@ -80,10 +80,6 @@ export const retryFailedPaypalPayoutsAction = authPartnerActionClient);}- if (!payout.paypalTransferId) {- throw new Error("This payout has no existing PayPal transfer ID.");- }-if (!payout.invoiceId) {throw new Error("This payout has no invoice ID.");}