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.

omit username for onboardPartnerSchema

Steven Tey048f92048bf6
diff --git a/apps/web/lib/zod/schemas/partners.ts b/apps/web/lib/zod/schemas/partners.ts
index 7ed6df7c84..a03cc104c3 100644
--- a/apps/web/lib/zod/schemas/partners.ts
+++ b/apps/web/lib/zod/schemas/partners.ts
@@ -194,9 +194,13 @@ export const createPartnerSchema = z.object({
.describe("A brief description of the partner and their background."),
});
-export const onboardPartnerSchema = createPartnerSchema.merge(
- z.object({
- image: z.string(),
- country: z.enum(COUNTRY_CODES),
- }),
-);
+export const onboardPartnerSchema = createPartnerSchema
+ .omit({
+ username: true,
+ })
+ .merge(
+ z.object({
+ image: z.string(),
+ country: z.enum(COUNTRY_CODES),
+ }),
+ );