Skip to content

Commit

Permalink
Fix function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Oct 8, 2024
1 parent 7a6cbd7 commit e03d3ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flows/actions/send_msg_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,17 @@ func (a *SendMsgCatalogAction) Execute(run flows.FlowRun, step flows.Step, logMo
if c != nil {
for _, trace := range c.Traces {
call := &flows.WebhookCall{Trace: trace}
logEvent(events.NewWebhookCalled(call, callStatus(call, nil, true), ""))
if trace != nil {
logEvent(events.NewWebhookCalled(call, callStatus(call, nil, false), ""))
}
}
}
a.saveResult(run, step, a.ResultName, fmt.Sprintf("%s", err), CategoryFailure, "", "", nil, logEvent)
return nil
}
for _, trace := range c.Traces {
call := &flows.WebhookCall{Trace: trace}
logEvent(events.NewWebhookCalled(call, callStatus(call, nil, true), ""))
logEvent(events.NewWebhookCalled(call, callStatus(call, nil, false), ""))
}
a.saveResult(run, step, a.ResultName, string(c.ResponseJSON), CategorySuccess, "", "", c.ResponseJSON, logEvent)
ProductEntries = c.ProductRetailerIDS
Expand Down

0 comments on commit e03d3ac

Please sign in to comment.