Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

remove old goals schema

Francis Caoa58dadb428e7
diff --git a/src/lib/schema.ts b/src/lib/schema.ts
index c786b96f3..1425da3b6 100644
--- a/src/lib/schema.ts
+++ b/src/lib/schema.ts
@@ -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;
}),
});
diff --git a/src/queries/sql/reports/getGoal.ts b/src/queries/sql/reports/getGoal.ts
index e3e6c9b07..4901bb28c 100644
--- a/src/queries/sql/reports/getGoal.ts
+++ b/src/queries/sql/reports/getGoal.ts
@@ -9,8 +9,6 @@ export interface GoalParameters {
endDate: Date;
type: string;
value: string;
- operator?: string;
- property?: string;
}
export async function getGoal(