Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update workflows.ts

Kiran K421b62dfbf36
diff --git a/apps/web/lib/zod/schemas/workflows.ts b/apps/web/lib/zod/schemas/workflows.ts
index cb4b442a74..0f28e1631d 100644
--- a/apps/web/lib/zod/schemas/workflows.ts
+++ b/apps/web/lib/zod/schemas/workflows.ts
@@ -7,22 +7,15 @@ export const WORKFLOW_CONDITION_ATTRIBUTES = [
"clicks",
"leads",
"sales",
- "clicks_earning",
- "leads_earning",
- "sales_earning",
+ "click_earnings",
+ "lead_earnings",
+ "sale_earnings",
"sale_revenue",
"earnings",
"revenue",
] as const;
-export const WORKFLOW_CONDITION_OPERATORS = [
- "equals_to",
- "not_equals",
- "starts_with",
- "ends_with",
- "in",
- "not_in",
-] as const;
+export const WORKFLOW_CONDITION_OPERATORS = ["greater_than"] as const;
export const WORKFLOW_ACTION_TYPES = [
"create_commission",