mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 20:39:44 +01:00
Fix event-data calls.
This commit is contained in:
parent
9180a7008b
commit
2683ff278a
@ -10,7 +10,7 @@ export interface EventDataFieldsRequestQuery {
|
|||||||
websiteId: string;
|
websiteId: string;
|
||||||
startAt: string;
|
startAt: string;
|
||||||
endAt: string;
|
endAt: string;
|
||||||
event: string;
|
event?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const schema = {
|
const schema = {
|
||||||
@ -18,7 +18,7 @@ const schema = {
|
|||||||
websiteId: yup.string().uuid().required(),
|
websiteId: yup.string().uuid().required(),
|
||||||
startAt: yup.number().integer().required(),
|
startAt: yup.number().integer().required(),
|
||||||
endAt: yup.number().integer().moreThan(yup.ref('startAt')).required(),
|
endAt: yup.number().integer().moreThan(yup.ref('startAt')).required(),
|
||||||
event: yup.string().required(),
|
event: yup.string(),
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ import { useAuth, useCors, useValidate } from 'lib/middleware';
|
|||||||
import { NextApiRequestQueryBody } from 'lib/types';
|
import { NextApiRequestQueryBody } from 'lib/types';
|
||||||
import { NextApiResponse } from 'next';
|
import { NextApiResponse } from 'next';
|
||||||
import { methodNotAllowed, ok, unauthorized } from 'next-basics';
|
import { methodNotAllowed, ok, unauthorized } from 'next-basics';
|
||||||
|
import { getEventDataStats } from 'queries/index';
|
||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
|
|
||||||
export interface EventDataStatsRequestQuery {
|
export interface EventDataStatsRequestQuery {
|
||||||
|
Loading…
Reference in New Issue
Block a user