Fixed app creator problems from looping

This commit is contained in:
frikky
2023-02-08 10:50:08 +01:00
parent aa649a3c67
commit 1f2c5ac089
3 changed files with 30 additions and 23 deletions
+2 -1
View File
@@ -2336,7 +2336,7 @@ func handleWebhookCallback(resp http.ResponseWriter, request *http.Request) {
}
// OrgId: activeOrgs[0].Id,
workflowExecution, executionResp, err := handleExecution(ctx, item, workflow, newRequest)
workflowExecution, executionResp, err := handleExecution(item, workflow, newRequest, hook.OrgId)
if err == nil {
if hook.Version == "v2" {
@@ -2378,6 +2378,7 @@ func handleWebhookCallback(resp http.ResponseWriter, request *http.Request) {
resp.WriteHeader(500)
resp.Write([]byte(fmt.Sprintf(`{"success": false, "reason": "%s"}`, executionResp)))
}
}
func executeCloudAction(action shuffle.CloudSyncJob, apikey string) error {