mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
use uuid
This commit is contained in:
parent
b0bed5e73a
commit
c147742d7a
18 changed files with 84 additions and 52 deletions
|
|
@ -23,11 +23,13 @@ async function relationalQuery(
|
|||
return rawQuery(
|
||||
`select
|
||||
event_name x,
|
||||
${getDateQuery('created_at', unit, timezone)} t,
|
||||
${getDateQuery('event.created_at', unit, timezone)} t,
|
||||
count(*) y
|
||||
from event
|
||||
where website_id=$1
|
||||
and created_at between $2 and $3
|
||||
join website
|
||||
on event.website_id = website.website_id
|
||||
where website_uuid='${websiteId}'
|
||||
and event.created_at between $2 and $3
|
||||
${getFilterQuery('event', filters, params)}
|
||||
group by 1, 2
|
||||
order by 2`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue