Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasptsch committed Aug 5, 2024
1 parent cfcc553 commit 8ca03a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/_authenticated/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const defaultTo = DateTime.now().plus({ month: 1 }).startOf("day").toISO();
const defaultFrom = DateTime.now().startOf("day").toISO();

const eventsSearchSchema = z.object({
fromDate: z.string().datetime().catch(defaultFrom),
fromDate: z.string().datetime().optional().catch(defaultFrom),
toDate: z.string().datetime().catch(defaultTo),
type: z.union([EventTypeSchema, z.undefined()]).catch(undefined),
});
Expand Down

0 comments on commit 8ca03a9

Please sign in to comment.