mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-24 11:01:38 +01:00
add funnel updates to relational query
This commit is contained in:
parent
bc5e85c838
commit
6ee9bb07da
@ -34,7 +34,8 @@ const schema = {
|
||||
value: yup.string().required(),
|
||||
}),
|
||||
)
|
||||
.min(2),
|
||||
.min(2)
|
||||
.required(),
|
||||
window: yup.number().positive().required(),
|
||||
dateRange: yup
|
||||
.object()
|
||||
|
@ -82,7 +82,7 @@ async function relationalQuery(
|
||||
from website_event
|
||||
where website_id = {{websiteId::uuid}}
|
||||
and created_at between {{startDate}} and {{endDate}}
|
||||
and ${column} ${operator} {param${i}:String}
|
||||
and ${column} ${operator} {{${i}}}
|
||||
)`;
|
||||
} else {
|
||||
pv.levelQuery += `
|
||||
@ -96,7 +96,7 @@ async function relationalQuery(
|
||||
`l.created_at `,
|
||||
`${windowMinutes} minute`,
|
||||
)}
|
||||
and we.${column} ${operator} {param${i}:String}
|
||||
and we.${column} ${operator} {{${i}}}
|
||||
and we.created_at <= {{endDate}}
|
||||
)`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user