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.

fix schema

Steven Tey701e6d03cbe0
diff --git a/apps/web/lib/zod/schemas/partners.ts b/apps/web/lib/zod/schemas/partners.ts
index e7073e2c4a..5829512a22 100644
--- a/apps/web/lib/zod/schemas/partners.ts
+++ b/apps/web/lib/zod/schemas/partners.ts
@@ -259,21 +259,16 @@ export const EnrolledPartnerBasicSchema = PartnerSchema.pick({
image: true,
description: true,
country: true,
- website: true,
- youtube: true,
- twitter: true,
- linkedin: true,
- instagram: true,
- tiktok: true,
paypalEmail: true,
stripeConnectId: true,
payoutsEnabledAt: true,
- createdAt: true,
-}).merge(
- ProgramEnrollmentSchema.omit({
- program: true,
- }),
-);
+})
+ .merge(
+ ProgramEnrollmentSchema.omit({
+ program: true,
+ }),
+ )
+ .merge(PartnerOnlinePresenceSchema);
// Used externally by GET+POST /api/partners and partner.enrolled webhook
export const EnrolledPartnerSchema = EnrolledPartnerBasicSchema.extend({