The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix firstSaleDate nullable
Steven Tey4efa01cf128b
diff --git a/apps/web/app/(ee)/api/customers/[id]/activity/route.ts b/apps/web/app/(ee)/api/customers/[id]/activity/route.tsindex 3fc3b2c422..1a92a37ef5 100644--- a/apps/web/app/(ee)/api/customers/[id]/activity/route.ts+++ b/apps/web/app/(ee)/api/customers/[id]/activity/route.ts@@ -66,6 +66,7 @@ export const GET = withWorkspace(async ({ workspace, params }) => {ltv: customer.saleAmount,timeToLead,timeToSale,+ firstSaleDate: firstSale ? new Date(firstSale.timestamp) : null,events,link,}),