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.

Update route.ts

Tim Wilson93a612b62b2f
diff --git a/apps/web/app/api/customers/[id]/route.ts b/apps/web/app/api/customers/[id]/route.ts
index 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 } : {}),
}),
- }),
+ ),
);
},
{