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

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