mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Fixed reports.
This commit is contained in:
parent
3e9cb66db2
commit
530d6fb323
12 changed files with 59 additions and 33 deletions
|
|
@ -25,7 +25,7 @@ export async function GET(
|
|||
|
||||
const { websiteId } = await params;
|
||||
const { timezone } = query;
|
||||
const { startDate, endDate, unit } = await getRequestDateRange(request);
|
||||
const { startDate, endDate, unit } = await getRequestDateRange(query);
|
||||
|
||||
if (!(await canViewWebsite(auth, websiteId))) {
|
||||
return unauthorized();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export async function GET(
|
|||
...filterParams,
|
||||
});
|
||||
|
||||
const { auth, error } = await parseRequest(request, schema);
|
||||
const { auth, query, error } = await parseRequest(request, schema);
|
||||
|
||||
if (error) {
|
||||
return error();
|
||||
|
|
@ -27,7 +27,7 @@ export async function GET(
|
|||
return unauthorized();
|
||||
}
|
||||
|
||||
const { startDate, endDate } = await getRequestDateRange(request);
|
||||
const { startDate, endDate } = await getRequestDateRange(query);
|
||||
|
||||
const filters = getRequestFilters(request);
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue