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 EnrolledPartnerSchema

Steven Tey09995ef4c053
diff --git a/apps/web/lib/zod/schemas/partners.ts b/apps/web/lib/zod/schemas/partners.ts
index 7438d8e5da..4efe435514 100644
--- a/apps/web/lib/zod/schemas/partners.ts
+++ b/apps/web/lib/zod/schemas/partners.ts
@@ -75,9 +75,10 @@ export const ProgramEnrollmentSchema = z.object({
}).nullable(),
});
-export const EnrolledPartnerSchema = PartnerSchema.merge(
- ProgramEnrollmentSchema,
-)
+export const EnrolledPartnerSchema = PartnerSchema.omit({
+ status: true,
+})
+ .merge(ProgramEnrollmentSchema)
.omit({
program: true,
})