remove old goals schema

This commit is contained in:
Francis Cao committed 2026-03-12 09:31:15 -07:00
1 parent 1359342e2e
commit a58dadb428
2 files changed
-10

No files matched your search

-8
View File
@@ -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;
}),
});
-2
View File
@@ -9,8 +9,6 @@ export interface GoalParameters {
endDate: Date;
type: string;
value: string;
operator?: string;
property?: string;
}
export async function getGoal(