Fix event-data calls.

This commit is contained in:
Brian Cao committed 2023-08-24 12:55:15 -07:00
1 parent 9180a7008b
commit 2683ff278a
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ export interface EventDataFieldsRequestQuery {
websiteId: string;
startAt: string;
endAt: string;
event: string;
event?: string;
}
const schema = {
@@ -18,7 +18,7 @@ const schema = {
websiteId: yup.string().uuid().required(),
startAt: yup.number().integer().required(),
endAt: yup.number().integer().moreThan(yup.ref('startAt')).required(),
event: yup.string().required(),
event: yup.string(),
}),
};