@@ -209,6 +209,7 @@ func (r *WorkflowRepo) Create(ctx context.Context, opts *biz.WorkflowCreateOpts)
209209 SetContractID (contractUUID ).
210210 SetOrganizationID (orgUUID ).
211211 SetDescription (opts .Description ).
212+ SetNillableWorkflowTemplateID (opts .WorkflowTemplateID ).
212213 Save (ctx )
213214 if err != nil {
214215 if ent .IsConstraintError (err ) {
@@ -492,12 +493,13 @@ func (r *WorkflowRepo) SoftDelete(ctx context.Context, id uuid.UUID) (err error)
492493
493494func entWFToBizWF (ctx context.Context , w * ent.Workflow ) (* biz.Workflow , error ) {
494495 wf := & biz.Workflow {Name : w .Name , ID : w .ID ,
495- CreatedAt : toTimePtr (w .CreatedAt ), Team : w .Team ,
496- RunsCounter : w .RunsCount ,
497- Public : w .Public ,
498- Description : w .Description ,
499- OrgID : w .OrganizationID ,
500- ProjectID : w .ProjectID ,
496+ CreatedAt : toTimePtr (w .CreatedAt ), Team : w .Team ,
497+ RunsCounter : w .RunsCount ,
498+ Public : w .Public ,
499+ Description : w .Description ,
500+ OrgID : w .OrganizationID ,
501+ ProjectID : w .ProjectID ,
502+ WorkflowTemplateID : w .WorkflowTemplateID ,
501503 }
502504
503505 // Set p either pre-loaded or queried
0 commit comments