mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 08:07:12 +01:00
Reverted getDateQuery logic.
This commit is contained in:
parent
358c725828
commit
250cdce306
3 changed files with 6 additions and 18 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { getDateQuery, getDateStringQuery, getFilterQuery, rawQuery } from 'lib/queries';
|
||||
import { getDateQuery, getFilterQuery, rawQuery } from 'lib/queries';
|
||||
|
||||
export function getEventMetrics(
|
||||
website_id,
|
||||
|
|
@ -14,7 +14,7 @@ export function getEventMetrics(
|
|||
`
|
||||
select
|
||||
event_value x,
|
||||
${getDateStringQuery(getDateQuery('created_at', unit, timezone), unit)} t,
|
||||
${getDateQuery('created_at', unit, timezone)} t,
|
||||
count(*) y
|
||||
from event
|
||||
where website_id=$1
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { parseFilters, rawQuery, getDateQuery, getDateStringQuery } from 'lib/queries';
|
||||
import { parseFilters, rawQuery, getDateQuery } from 'lib/queries';
|
||||
|
||||
export function getPageviewStats(
|
||||
website_id,
|
||||
|
|
@ -20,7 +20,7 @@ export function getPageviewStats(
|
|||
return rawQuery(
|
||||
`
|
||||
select
|
||||
${getDateStringQuery('g.t', unit)} as t,
|
||||
g.t as t,
|
||||
g.y as y
|
||||
from
|
||||
(select ${getDateQuery('pageview.created_at', unit, timezone)} t,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue