Skip to content

Commit

Permalink
Fix year types
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandsalis committed Aug 21, 2024
1 parent e23930c commit 764b883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/routes/aktuelles.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const YearSchema = z.object({
name: z.string(),
}),
photos: z.array(PhotoSchema).nullable(),
plan: z.string(),
plan: z.string().nullable(),
})

export type Year = z.infer<typeof YearSchema>
Expand Down
2 changes: 1 addition & 1 deletion app/routes/jahrgaenge+/$year.query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const YearSchema = z.object({
_type: z.string(),
startedAt: z.coerce.date(),
graduatedAt: z.coerce.date().nullable(),
plan: z.string(),
plan: z.string().nullable(),
letter: z.string(),
mentor: PersonSchema.pick({ givenNames: true, familyName: true }).extend({
name: z.string(),
Expand Down

0 comments on commit 764b883

Please sign in to comment.