Fixed reports.

This commit is contained in:
Mike Cao 2025-02-01 16:20:22 -08:00
parent 3e9cb66db2
commit 530d6fb323
12 changed files with 59 additions and 33 deletions

View file

@ -25,7 +25,7 @@ export async function GET(
const { websiteId } = await params;
const { timezone } = query;
const { startDate, endDate, unit } = await getRequestDateRange(request);
const { startDate, endDate, unit } = await getRequestDateRange(query);
if (!(await canViewWebsite(auth, websiteId))) {
return unauthorized();