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.

add transform to sale tracking

Steven Teya9b2faf17c09
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index 0fc9e26b1d..80498b8299 100644
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@ -48,6 +48,7 @@ export const trackSaleRequestSchema = z.object({
currency: z
.string()
.default("usd")
+ .transform((val) => val.toLowerCase())
.describe("The currency of the sale. Accepts ISO 4217 currency codes."),
metadata: z
.record(z.unknown())