The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Workflow context `totalCommissions` -> `totalCommission`
Tim Wilson7d53f87b4d17
diff --git a/apps/web/lib/api/workflows/execute-workflows.ts b/apps/web/lib/api/workflows/execute-workflows.tsindex 6eafc8e0e8..9735edc9ff 100644--- a/apps/web/lib/api/workflows/execute-workflows.ts+++ b/apps/web/lib/api/workflows/execute-workflows.ts@@ -84,7 +84,7 @@ export async function executeWorkflows({totalLeads,totalConversions,totalSaleAmount,- totalCommissions: programEnrollment.totalCommissions,+ totalCommission: programEnrollment.totalCommissions,};// Execute each workflow for the programdiff --git a/apps/web/lib/types.ts b/apps/web/lib/types.tsindex d5195e7529..6ebb6aa709 100644--- a/apps/web/lib/types.ts+++ b/apps/web/lib/types.ts@@ -555,7 +555,7 @@ export type WorkflowAction = z.infer<typeof workflowActionSchema>;export type OperatorFn = (a: number, b: number) => boolean;export interface WorkflowContext {- totalCommissions: number;+ totalCommission: number;totalLeads: number;totalConversions: number;totalSaleAmount: number;