Skip to content

Commit

Permalink
fix event date schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielzxccc committed May 1, 2024
1 parent 527ecf7 commit 2b3876b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/schema/CommunityFarmSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ export const CreateCommunityEvent = z.object({
farmid: z.string(),
title: z.string(),
about: z.string(),
start_date: z.string().transform((arg) => formatTimestamp(arg)),
end_date: z.string().transform((arg) => formatTimestamp(arg)),
start_date: z.string(),
end_date: z.string(),
type: z.union([z.literal('private'), z.literal('public')]),
tags: z.union([z.array(z.string()), z.string()]).optional(),
}),
Expand All @@ -159,8 +159,8 @@ export const UpdateCommunityEvent = z.object({
body: z.object({
title: z.string().optional(),
about: z.string().optional(),
start_date: z.string().transform((arg) => formatTimestamp(arg)),
end_date: z.string().transform((arg) => formatTimestamp(arg)),
start_date: z.string(),
end_date: z.string(),
type: z.union([z.literal('private'), z.literal('public')]).optional(),
tags: z.union([z.array(z.string()), z.string()]).optional(),
}),
Expand Down

0 comments on commit 2b3876b

Please sign in to comment.