Reverted getDateQuery logic.

This commit is contained in:
Mike Cao 2022-07-21 13:21:33 -07:00
parent 358c725828
commit 250cdce306
3 changed files with 6 additions and 18 deletions

View file

@ -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