Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fix getRequestFilters using request instead of query
Francis Caobea4d3a80bac
diff --git a/next-env.d.ts b/next-env.d.tsindex 1b3be0840..40c3d6809 100644--- a/next-env.d.ts+++ b/next-env.d.ts@@ -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.diff --git a/src/app/api/websites/[websiteId]/events/series/route.ts b/src/app/api/websites/[websiteId]/events/series/route.tsindex 413988afc..f8646e49c 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.tsindex 016e9cf46..a45784f79 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,