Skip to content

Commit

Permalink
Fix Deadline on Evaluator (#221)
Browse files Browse the repository at this point in the history
* add optional

* use coerce to avoid ecpected error

---------

Co-authored-by: qweliant <[email protected]>
  • Loading branch information
qweliant and qweliant authored Feb 12, 2024
1 parent e1efba3 commit c219a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/evaluations/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export type EvaluatorWithInvite = z.infer<typeof EvaluatorWithInvite>;
export const EvaluatorWhoAccepted = EvaluatorWithInvite.merge(
z.object({
acceptedAt: z.string(),
deadline: z.date(),
deadline: z.coerce.date().optional(),
})
);
export type EvaluatorWhoAccepted = z.infer<typeof EvaluatorWhoAccepted>;
Expand Down

0 comments on commit c219a3d

Please sign in to comment.