The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add disabledAt field to Workflow model
Kiran Kecf014b4c41d
diff --git a/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts b/apps/web/app/(ee)/api/bounties/[bountyId]/route.tsindex edfd24be19..4c6e4c10fd 100644--- a/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts+++ b/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts@@ -58,6 +58,9 @@ export const PATCH = withWorkspace(async ({ workspace, params, req }) => {programId,});+ // TODO:+ // When we do archive, make sure it disables the workflow+const groups = groupIds?.length? await prisma.partnerGroup.findMany({where: {diff --git a/packages/prisma/schema/workflow.prisma b/packages/prisma/schema/workflow.prismaindex 44c60cc9f1..c3eb696bbc 100644--- a/packages/prisma/schema/workflow.prisma+++ b/packages/prisma/schema/workflow.prisma@@ -17,6 +17,7 @@ model Workflow {triggerType WorkflowTriggerType @default(event)triggerConditions Jsonactions Json+ disabledAt DateTime?createdAt DateTime @default(now())updatedAt DateTime @updatedAt