From 116930c8c56c5541193799fdc04ed1d7fc1fc0bd Mon Sep 17 00:00:00 2001 From: abelanger5 Date: Fri, 6 Dec 2024 12:01:57 -0500 Subject: [PATCH] fixes an issue where code-defined cron schedules aren't created properly (#1098) --- pkg/repository/prisma/workflow.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/repository/prisma/workflow.go b/pkg/repository/prisma/workflow.go index 703558f16..c61c4064c 100644 --- a/pkg/repository/prisma/workflow.go +++ b/pkg/repository/prisma/workflow.go @@ -1086,6 +1086,10 @@ func (r *workflowEngineRepository) createWorkflowVersionTxs(ctx context.Context, Workflowtriggersid: sqlcWorkflowTriggers.ID, Crontrigger: cronTrigger, Input: opts.CronInput, + Name: pgtype.Text{ + String: "", + Valid: true, + }, }, )