The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix issue
Steven Tey35fab69f5deb
diff --git a/apps/web/lib/paypal/cancel-paypal-payout.ts b/apps/web/lib/paypal/cancel-paypal-payout.tsindex a02af9a851..5e0f40aac7 100644--- a/apps/web/lib/paypal/cancel-paypal-payout.ts+++ b/apps/web/lib/paypal/cancel-paypal-payout.ts@@ -15,15 +15,12 @@ export const cancelPaypalPayout = async (paypalTransferId: string) => {},);- const body = await res.json();+ const data = await res.json();if (!res.ok) {- console.error("[PayPal] Failed to cancel payout.", body);+ console.error("[PayPal] Failed to cancel payout.", data);throw new Error("Failed to cancel PayPal payout.");}- return body;-};-- return response;+ return data;};diff --git a/apps/web/lib/paypal/create-batch-payout.ts b/apps/web/lib/paypal/create-batch-payout.tsindex d1a83dd813..861769a9f3 100644--- a/apps/web/lib/paypal/create-batch-payout.ts+++ b/apps/web/lib/paypal/create-batch-payout.ts@@ -55,4 +55,6 @@ export async function createPayPalBatchPayout({}console.log("[PayPal] Batch payout created", data);++ return data;}