Reduced execution bytesize

This commit is contained in:
frikky
2021-01-17 15:38:58 +01:00
parent 3b6501c56c
commit 38b454bc38
8 changed files with 94 additions and 16 deletions
+1 -1
View File
@@ -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: "",
}
+12
View File
@@ -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{}
}