mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 01:25:37 +01:00
use uuid
This commit is contained in:
parent
b0bed5e73a
commit
c147742d7a
18 changed files with 84 additions and 52 deletions
|
|
@ -17,8 +17,10 @@ async function relationalQuery(websiteId) {
|
|||
return prisma.rawQuery(
|
||||
`select count(distinct session_id) x
|
||||
from pageview
|
||||
where website_id = $1
|
||||
and created_at >= $2`,
|
||||
join website
|
||||
on pageview.website_id = website.website_id
|
||||
where website.website_uuid = '${websiteId}'
|
||||
and pageview.created_at >= $2`,
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue