Skip to content

Commit

Permalink
fix zod validation for getSponsors (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
waalbert authored Oct 30, 2024
1 parent 236e1c3 commit d87396c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/site/src/app/(home)/sections/Sponsors/getSponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ const Sponsors = SanityDocument.extend({
_key: z.string(),
name: z.string(),
url: z.string().url().optional(),
tier: z.union([z.literal("bronze"), z.literal("silver")]),
tier: z.union([
z.literal("bronze"),
z.literal("silver"),
z.literal("gold"),
]),
logo: SanityImageReference,
}),
),
Expand Down

0 comments on commit d87396c

Please sign in to comment.