mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Insights report filters.
This commit is contained in:
parent
acbffed2ce
commit
5039349d57
7 changed files with 138 additions and 87 deletions
|
|
@ -3,7 +3,7 @@ import { canViewWebsite } from 'lib/auth';
|
|||
import { useAuth, useCors } from 'lib/middleware';
|
||||
import { NextApiResponse } from 'next';
|
||||
import { badRequest, methodNotAllowed, ok, unauthorized } from 'next-basics';
|
||||
import { EVENT_COLUMNS, SESSION_COLUMNS } from 'lib/constants';
|
||||
import { EVENT_COLUMNS, FILTER_COLUMNS, SESSION_COLUMNS } from 'lib/constants';
|
||||
import { getValues } from 'queries';
|
||||
|
||||
export interface WebsiteResetRequestQuery {
|
||||
|
|
@ -28,7 +28,7 @@ export default async (
|
|||
return unauthorized(res);
|
||||
}
|
||||
|
||||
const values = await getValues(websiteId, type as string);
|
||||
const values = await getValues(websiteId, FILTER_COLUMNS[type as string]);
|
||||
|
||||
return ok(
|
||||
res,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue