diff --git a/next-env.d.ts b/next-env.d.ts index 1b3be084..40c3d680 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -2,4 +2,4 @@ /// // 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. diff --git a/src/app/api/websites/[websiteId]/events/series/route.ts b/src/app/api/websites/[websiteId]/events/series/route.ts index 413988af..f8646e49 100644 --- a/src/app/api/websites/[websiteId]/events/series/route.ts +++ b/src/app/api/websites/[websiteId]/events/series/route.ts @@ -32,7 +32,7 @@ export async function GET( } const filters = { - ...getRequestFilters(request), + ...getRequestFilters(query), startDate, endDate, timezone, diff --git a/src/app/api/websites/[websiteId]/sessions/stats/route.ts b/src/app/api/websites/[websiteId]/sessions/stats/route.ts index 016e9cf4..a45784f7 100644 --- a/src/app/api/websites/[websiteId]/sessions/stats/route.ts +++ b/src/app/api/websites/[websiteId]/sessions/stats/route.ts @@ -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,