@@ -39,7 +39,7 @@ func PublishWorkflowAdd(ctx context.Context, projKey string, w sdk.Workflow, u s
3939 e := sdk.EventWorkflowAdd {
4040 Workflow : w ,
4141 }
42- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
42+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
4343}
4444
4545// PublishWorkflowUpdate publishes an event for the update of the given Workflow
@@ -48,15 +48,15 @@ func PublishWorkflowUpdate(ctx context.Context, projKey string, w sdk.Workflow,
4848 NewWorkflow : w ,
4949 OldWorkflow : oldw ,
5050 }
51- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
51+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
5252}
5353
5454// PublishWorkflowDelete publishes an event for the deletion of the given Workflow
5555func PublishWorkflowDelete (ctx context.Context , projKey string , w sdk.Workflow , u sdk.Identifiable ) {
5656 e := sdk.EventWorkflowDelete {
5757 Workflow : w ,
5858 }
59- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
59+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
6060}
6161
6262// PublishWorkflowPermissionAdd publishes an event when adding a permission on a workflow
@@ -65,7 +65,7 @@ func PublishWorkflowPermissionAdd(ctx context.Context, projKey string, w sdk.Wor
6565 WorkflowID : w .ID ,
6666 Permission : gp ,
6767 }
68- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
68+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
6969}
7070
7171// PublishWorkflowPermissionUpdate publishes an event when updating a permission on a workflow
@@ -75,7 +75,7 @@ func PublishWorkflowPermissionUpdate(ctx context.Context, projKey string, w sdk.
7575 NewPermission : gp ,
7676 OldPermission : gpOld ,
7777 }
78- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
78+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
7979}
8080
8181// PublishWorkflowPermissionDelete publishes an event when deleting a permission on a workflow
@@ -84,7 +84,7 @@ func PublishWorkflowPermissionDelete(ctx context.Context, projKey string, w sdk.
8484 WorkflowID : w .ID ,
8585 Permission : gp ,
8686 }
87- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
87+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
8888}
8989
9090func PublishWorkflowRetentionDryRun (ctx context.Context , projKey string , workflowName string , status string , error string , runsToKeep []sdk.WorkflowRunToKeep , nbRunsAnalyzed int64 , u sdk.Identifiable ) {
0 commit comments