Fix getRequestFilters using request instead of query

This commit is contained in:
Francis Cao 2025-02-05 11:07:49 -08:00
parent 9abf5bb84d
commit bea4d3a80b
3 changed files with 3 additions and 3 deletions

2
next-env.d.ts vendored
View file

@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

View file

@ -32,7 +32,7 @@ export async function GET(
}
const filters = {
...getRequestFilters(request),
...getRequestFilters(query),
startDate,
endDate,
timezone,

View file

@ -29,7 +29,7 @@ export async function GET(
const { startDate, endDate } = await getRequestDateRange(query);
const filters = getRequestFilters(request);
const filters = getRequestFilters(query);
const metrics = await getWebsiteSessionStats(websiteId, {
...filters,