mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
update timezone zod validation to use timezoneParam
This commit is contained in:
parent
a1efb2d86a
commit
6fd428683d
1 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ export const retentionReportSchema = z.object({
|
|||
parameters: z.object({
|
||||
startDate: z.coerce.date(),
|
||||
endDate: z.coerce.date(),
|
||||
timezone: z.string().optional(),
|
||||
timezone: timezoneParam.optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
@ -175,7 +175,7 @@ export const revenueReportSchema = z.object({
|
|||
startDate: z.coerce.date(),
|
||||
endDate: z.coerce.date(),
|
||||
unit: unitParam.optional(),
|
||||
timezone: z.string().optional(),
|
||||
timezone: timezoneParam.optional(),
|
||||
currency: z.string(),
|
||||
}),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue