Fixed date range calculations.
This commit is contained in:
1 parent
9f112c8cc9
commit
38abd673f3
8 files changed
+55
-21
No files matched your search
@@ -165,7 +165,7 @@ export async function getPageviewData(
|
||||
return runQuery(
|
||||
prisma.queryRaw(
|
||||
`
|
||||
select date_trunc('${unit}', created_at at time zone '${timezone}') t,
|
||||
select date_trunc('${unit}', created_at at time zone '${timezone}') at time zone '${timezone}' t,
|
||||
count(${count}) y
|
||||
from pageview
|
||||
where website_id=$1
|
||||
|
||||
Reference in new issue
Block a user