The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Tim Wilson93a612b62b2f
diff --git a/apps/web/app/api/customers/[id]/route.ts b/apps/web/app/api/customers/[id]/route.tsindex 6fe829b879..ef98e0c4ef 100644--- a/apps/web/app/api/customers/[id]/route.ts+++ b/apps/web/app/api/customers/[id]/route.ts@@ -58,12 +58,12 @@ export const GET = withWorkspace(: CustomerSchema;return NextResponse.json(- responseSchema.parse({- ...transformCustomer({+ responseSchema.parse(+ transformCustomer({...customer,...(includeExpandedFields ? { discount } : {}),}),- }),+ ),);},{