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 schema

Steven Tey103c025573c3
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/partner-table.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/partner-table.tsx
index 4c545c51ff..6ebfe5e12a 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/partner-table.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/partner-table.tsx
@@ -65,6 +65,7 @@ const partnersColumns = {
"location",
"clicks",
"leads",
+ "conversions",
"sales",
"saleAmount",
"totalCommissions",
@@ -76,7 +77,7 @@ const partnersColumns = {
"location",
"clicks",
"leads",
- "sales",
+ "conversions",
"saleAmount",
"totalCommissions",
],
diff --git a/apps/web/lib/zod/schemas/partners.ts b/apps/web/lib/zod/schemas/partners.ts
index 6e099c93e8..ff9d79ea71 100644
--- a/apps/web/lib/zod/schemas/partners.ts
+++ b/apps/web/lib/zod/schemas/partners.ts
@@ -95,7 +95,7 @@ export const getPartnersQuerySchema = z
includeExpandedFields: booleanQuerySchema
.optional()
.describe(
- "Whether to include stats fields on the partner (`clicks`, `leads`, `sales`, `saleAmount`, `commissions`, `netRevenue`). If false, those fields will be returned as 0.",
+ "Whether to include stats fields on the partner (`clicks`, `leads`, `conversions`, `sales`, `saleAmount`, `commissions`, `netRevenue`). If false, those fields will be returned as 0.",
)
.openapi({ example: "true" }),
search: z