mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 11:05:36 +01:00
Fix getRequestFilters using request instead of query
This commit is contained in:
parent
9abf5bb84d
commit
bea4d3a80b
3 changed files with 3 additions and 3 deletions
2
next-env.d.ts
vendored
2
next-env.d.ts
vendored
|
|
@ -2,4 +2,4 @@
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// 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.
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ export async function GET(
|
||||||
}
|
}
|
||||||
|
|
||||||
const filters = {
|
const filters = {
|
||||||
...getRequestFilters(request),
|
...getRequestFilters(query),
|
||||||
startDate,
|
startDate,
|
||||||
endDate,
|
endDate,
|
||||||
timezone,
|
timezone,
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ export async function GET(
|
||||||
|
|
||||||
const { startDate, endDate } = await getRequestDateRange(query);
|
const { startDate, endDate } = await getRequestDateRange(query);
|
||||||
|
|
||||||
const filters = getRequestFilters(request);
|
const filters = getRequestFilters(query);
|
||||||
|
|
||||||
const metrics = await getWebsiteSessionStats(websiteId, {
|
const metrics = await getWebsiteSessionStats(websiteId, {
|
||||||
...filters,
|
...filters,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue