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, }) diff --git a/apps/web/prisma/schema/partner.prisma b/apps/web/prisma/schema/partner.prisma index bb911846ab..818004fd1d 100644 --- a/apps/web/prisma/schema/partner.prisma +++ b/apps/web/prisma/schema/partner.prisma @@ -1,7 +1,7 @@ enum PartnerStatus { default - pending - approved + verified + featured } enum PartnerRole {