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.

fix trace_id not string bug

Steven Tey1216bf892f2c
diff --git a/apps/web/app/(ee)/api/stripe/connect/webhook/payout-paid.ts b/apps/web/app/(ee)/api/stripe/connect/webhook/payout-paid.ts
index 96ac31e9cb..2af310f207 100644
--- a/apps/web/app/(ee)/api/stripe/connect/webhook/payout-paid.ts
+++ b/apps/web/app/(ee)/api/stripe/connect/webhook/payout-paid.ts
@@ -53,7 +53,10 @@ export async function payoutPaid(event: Stripe.Event) {
amount: stripePayout.amount,
currency: stripePayout.currency,
arrivalDate: stripePayout.arrival_date,
- traceId: stripePayout.trace_id as string | null,
+ traceId:
+ typeof stripePayout.trace_id === "string"
+ ? stripePayout.trace_id
+ : null,
},
}),
});