mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Resolve issues in event data
This commit is contained in:
parent
38445fce7a
commit
c3e261fc50
8 changed files with 23 additions and 26 deletions
|
|
@ -5,7 +5,7 @@ import { NextApiResponse } from 'next';
|
|||
import { ok, methodNotAllowed, unauthorized } from 'next-basics';
|
||||
import { getEventDataFields } from 'queries';
|
||||
|
||||
export interface EventDataFieldsRequestBody {
|
||||
export interface EventDataFieldsRequestQuery {
|
||||
websiteId: string;
|
||||
dateRange: {
|
||||
startDate: string;
|
||||
|
|
@ -15,7 +15,7 @@ export interface EventDataFieldsRequestBody {
|
|||
}
|
||||
|
||||
export default async (
|
||||
req: NextApiRequestQueryBody<any, EventDataFieldsRequestBody>,
|
||||
req: NextApiRequestQueryBody<EventDataFieldsRequestQuery>,
|
||||
res: NextApiResponse<any>,
|
||||
) => {
|
||||
await useCors(req, res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue