Skip to content

Commit 58ccedf

Browse files
committed
small fix
1 parent 23580f7 commit 58ccedf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/workflow/trigger/audit/service/WorkflowTriggerAuditService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (impl *WorkflowTriggerAuditServiceImpl) createWorkflowConfigSnapshot(workfl
110110
workflowType, pipelineId, workflowId := types.PRE_CD_WORKFLOW_TYPE, workflowRequest.CdPipelineId, workflowRequest.WorkflowRunnerId
111111
if workflowRequest.IsCdStageTypePost() {
112112
workflowType = types.POST_CD_WORKFLOW_TYPE
113-
} else {
113+
} else if workflowRequest.IsCiTypeWorkflowRequest() {
114114
workflowType, pipelineId, workflowId = types.CI_WORKFLOW_TYPE, workflowRequest.PipelineId, workflowRequest.WorkflowId
115115
}
116116
configSnapshot := adapter.GetWorkflowConfigSnapshot(workflowId, workflowType, pipelineId, compressedWorkflowJson, types.TriggerAuditSchemaVersionV1, workflowRequest.TriggeredBy)

0 commit comments

Comments
 (0)