Fixed further user input problems

This commit is contained in:
Frikky
2024-01-21 23:57:39 +01:00
parent f7c0c6e5e4
commit fb9cab4ec0
7 changed files with 201 additions and 42 deletions
+2 -2
View File
@@ -1067,7 +1067,7 @@ func handleExecution(id string, workflow shuffle.Workflow, request *http.Request
// Special for user input callbacks
return workflowExecution, fmt.Sprintf("%s", err), nil
} else {
log.Printf("[ERROR] Failed in prepareExecution: %s", err)
log.Printf("[ERROR] Failed in prepareExecution: '%s'", err)
return shuffle.WorkflowExecution{}, fmt.Sprintf("Failed starting workflow: %s", err), err
}
}
@@ -1892,7 +1892,7 @@ func executeWorkflow(resp http.ResponseWriter, request *http.Request) {
}
}
log.Printf("[AUDIT] Starting execution of workflow '%s' by user %s (%s)!", fileId, user.Username, user.Id)
log.Printf("[AUDIT] Starting execution of workflow '%s' by user '%s' (%s). If this is empty, it's most likely a subflow!", fileId, user.Username, user.Id)
user.ActiveOrg.Users = []shuffle.UserMini{}
workflow.ExecutingOrg = user.ActiveOrg