mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Fixed funnel report saving invalid data.
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
This commit is contained in:
parent
bf16ade184
commit
980e4e6b41
11 changed files with 34 additions and 25 deletions
|
|
@ -57,7 +57,7 @@ export const userRoleParam = z.enum(['admin', 'user', 'view-only']);
|
|||
|
||||
export const teamRoleParam = z.enum(['team-member', 'team-view-only', 'team-manager']);
|
||||
|
||||
export const anyObjectParam = z.object({}).passthrough();
|
||||
export const anyObjectParam = z.record(z.string(), z.any());
|
||||
|
||||
export const urlOrPathParam = z.string().refine(
|
||||
value => {
|
||||
|
|
@ -202,7 +202,7 @@ export const reportBaseSchema = z.object({
|
|||
type: reportTypeParam,
|
||||
name: z.string().max(200),
|
||||
description: z.string().max(500).optional(),
|
||||
parameters: z.object({}).passthrough(),
|
||||
parameters: anyObjectParam,
|
||||
});
|
||||
|
||||
export const reportTypeSchema = z.discriminatedUnion('type', [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue