Skip to content

Commit

Permalink
fix: removing unnecessary images
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0elliot committed Sep 4, 2023
1 parent 0b5c5df commit 4f85cfe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -3011,6 +3011,7 @@ func GetWorkflowExecutions(resp http.ResponseWriter, request *http.Request) {
for index, execution := range workflowExecutions {
newResults := []ActionResult{}
newActions := []Action{}
newTriggers := []Trigger{}

// Results
for _, result := range execution.Results {
Expand Down Expand Up @@ -3044,8 +3045,16 @@ func GetWorkflowExecutions(resp http.ResponseWriter, request *http.Request) {
newActions = append(newActions, action)
}

for _, trigger := range execution.Workflow.Triggers {
trigger.LargeImage = ""
trigger.SmallImage = ""
newTriggers = append(newTriggers, trigger)
}

workflowExecutions[index].Results = newResults
workflowExecutions[index].Workflow.Actions = newActions
workflowExecutions[index].Workflow.Image = ""
workflowExecutions[index].Workflow.Triggers = newTriggers
}

newjson, err := json.Marshal(workflowExecutions)
Expand Down

0 comments on commit 4f85cfe

Please sign in to comment.