Skip to content

Commit

Permalink
update partner status
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Nov 14, 2024
1 parent cdfa4e7 commit 0cbdff3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions apps/web/lib/zod/schemas/partners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/web/prisma/schema/partner.prisma
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
enum PartnerStatus {
default
pending
approved
verified
featured
}

enum PartnerRole {
Expand Down

0 comments on commit 0cbdff3

Please sign in to comment.