mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +01:00
add event data
This commit is contained in:
parent
67394194af
commit
75778fdfc7
22 changed files with 446 additions and 84 deletions
|
|
@ -18,7 +18,7 @@ async function relationalQuery(
|
|||
filters = {},
|
||||
) {
|
||||
const { rawQuery, getDateQuery, getFilterQuery } = prisma;
|
||||
const params = [websiteId, start_at, end_at];
|
||||
const params = [start_at, end_at];
|
||||
|
||||
return rawQuery(
|
||||
`select
|
||||
|
|
@ -29,7 +29,7 @@ async function relationalQuery(
|
|||
join website
|
||||
on event.website_id = website.website_id
|
||||
where website_uuid='${websiteId}'
|
||||
and event.created_at between $2 and $3
|
||||
and event.created_at between $1 and $2
|
||||
${getFilterQuery('event', filters, params)}
|
||||
group by 1, 2
|
||||
order by 2`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue