remove old goals schema
This commit is contained in:
1 parent
1359342e2e
commit
a58dadb428
2 files changed
-10
No files matched your search
@@ -165,14 +165,6 @@ export const goalReportSchema = z.object({
|
||||
endDate: z.coerce.date(),
|
||||
type: z.string(),
|
||||
value: z.string(),
|
||||
operator: z.enum(['count', 'sum', 'average']).optional(),
|
||||
property: z.string().optional(),
|
||||
})
|
||||
.refine(data => {
|
||||
if (data.type === 'event' && data.property) {
|
||||
return data.operator && data.property;
|
||||
}
|
||||
return true;
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@ export interface GoalParameters {
|
||||
endDate: Date;
|
||||
type: string;
|
||||
value: string;
|
||||
operator?: string;
|
||||
property?: string;
|
||||
}
|
||||
|
||||
export async function getGoal(
|
||||
|
||||
Reference in new issue
Block a user