Reduced execution bytesize
This commit is contained in:
@@ -3535,7 +3535,7 @@ func handleWebhookCallback(resp http.ResponseWriter, request *http.Request) {
|
||||
}
|
||||
|
||||
for _, item := range hook.Workflows {
|
||||
log.Printf("Running webhook for workflow %s with startnode %s", item, hook.Start)
|
||||
//log.Printf("Running webhook for workflow %s with startnode %s", item, hook.Start)
|
||||
workflow := Workflow{
|
||||
ID: "",
|
||||
}
|
||||
|
||||
@@ -1727,6 +1727,7 @@ func setNewWorkflow(resp http.ResponseWriter, request *http.Request) {
|
||||
action.IsValid = true
|
||||
}
|
||||
|
||||
action.LargeImage = ""
|
||||
newActions = append(newActions, action)
|
||||
}
|
||||
|
||||
@@ -2797,7 +2798,18 @@ func handleExecution(id string, workflow Workflow, request *http.Request) (Workf
|
||||
|
||||
if len(workflow.Actions) == 0 {
|
||||
workflow.Actions = []Action{}
|
||||
} else {
|
||||
newactions := []Action{}
|
||||
for _, action := range workflow.Actions {
|
||||
action.LargeImage = ""
|
||||
action.SmallImage = ""
|
||||
newactions = append(newactions, action)
|
||||
log.Printf("ACTION: %#v", action)
|
||||
}
|
||||
|
||||
workflow.Actions = newactions
|
||||
}
|
||||
|
||||
if len(workflow.Branches) == 0 {
|
||||
workflow.Branches = []Branch{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user