The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update utils.ts
Kiran K55c33ff77c86
diff --git a/apps/web/lib/api/workflows/utils.ts b/apps/web/lib/api/workflows/utils.tsindex 9eaa7a9703..ef178ae6c6 100644--- a/apps/web/lib/api/workflows/utils.ts+++ b/apps/web/lib/api/workflows/utils.ts@@ -12,9 +12,14 @@ export const isDaysAttribute = (activity: WorkflowConditionAttribute) =>export const isScheduledWorkflow = (workflow: Workflow) => {const { condition } = parseWorkflowConfig(workflow);- if (condition.attribute === "partnerJoined") {+ const shouldSchedule = SCHEDULED_WORKFLOW_TRIGGERS.includes(workflow.trigger);++ if (+ !shouldSchedule ||+ (shouldSchedule && condition.attribute === "partnerJoined")+ ) {return false;}- return SCHEDULED_WORKFLOW_TRIGGERS.includes(workflow.trigger);+ return true;};