The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add stripePayoutTraceId
Steven Tey01f9579f4201
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.tsindex bf42db4825..afc9542a79 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@@ -27,6 +27,10 @@ export async function payoutPaid(event: Stripe.Event) {where: {status: "sent",stripePayoutId: stripePayout.id,+ stripePayoutTraceId:+ typeof stripePayout.trace_id === "string"+ ? stripePayout.trace_id+ : null,},data: {status: "completed",diff --git a/packages/prisma/schema/payout.prisma b/packages/prisma/schema/payout.prismaindex 6d09ec231d..87be70bbed 100644--- a/packages/prisma/schema/payout.prisma+++ b/packages/prisma/schema/payout.prisma@@ -14,24 +14,25 @@ enum PayoutMode {}model Payout {- id String @id @default(cuid())- programId String- partnerId String- invoiceId String?- amount Int @default(0)- currency String @default("USD")- status PayoutStatus @default(pending)- mode PayoutMode?- description String?- periodStart DateTime?- periodEnd DateTime?- paypalTransferId String? @unique- stripeTransferId String?- stripePayoutId String?- failureReason String? @db.Text- webhookEventId String? @unique // only for external payouts- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt+ id String @id @default(cuid())+ programId String+ partnerId String+ invoiceId String?+ amount Int @default(0)+ currency String @default("USD")+ status PayoutStatus @default(pending)+ mode PayoutMode?+ description String?+ periodStart DateTime?+ periodEnd DateTime?+ paypalTransferId String? @unique+ stripeTransferId String?+ stripePayoutId String?+ stripePayoutTraceId String? @db.Text+ failureReason String? @db.Text+ webhookEventId String? @unique // only for external payouts+ createdAt DateTime @default(now())+ updatedAt DateTime @updatedAtuserId String? // user who made the payoutinitiatedAt DateTime?