Skip to content

Commit

Permalink
fix ZodError where _source.employer doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkhiem committed Feb 12, 2025
1 parent 1491427 commit e29396f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/schemas/stillingSearchSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const SourceSchema = z.object({
medium: z.string(),
expires: z.string(),
businessName: z.string(),
employer: z.object({ name: z.string() }),
employer: z.object({ name: z.string() }).optional(),
published: z.string(),
title: z.string(),
reference: z.string(),
Expand Down

0 comments on commit e29396f

Please sign in to comment.