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.

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.ts
index 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 program
diff --git a/apps/web/lib/types.ts b/apps/web/lib/types.ts
index 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;