From 84c7e938dd70830ada94c5802948aca62dfc55ec Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Mon, 27 May 2024 01:12:09 +0530 Subject: [PATCH 1/3] fix[mail-app]: adding email app option --- structs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/structs.go b/structs.go index c924e6b..ce508b3 100755 --- a/structs.go +++ b/structs.go @@ -3458,6 +3458,7 @@ type Mailcheck struct { Body string `json:"body"` Subject string `json:"subject"` Type string `json:"type"` + EmailApp bool `json:"email_app"` SenderCompany string `json:"sender_company"` WorkflowId string `json:"workflow_id"` ReferenceExecution string `json:"reference_execution"` From 15d32247c47855c46ffaec6922a2c54807e5973e Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Mon, 27 May 2024 01:20:38 +0530 Subject: [PATCH 2/3] fix[mail-app]: adding email app option (1) --- structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs.go b/structs.go index ce508b3..377a7e0 100755 --- a/structs.go +++ b/structs.go @@ -3458,7 +3458,7 @@ type Mailcheck struct { Body string `json:"body"` Subject string `json:"subject"` Type string `json:"type"` - EmailApp bool `json:"email_app"` + EmailApp bool `json:"email_app"` SenderCompany string `json:"sender_company"` WorkflowId string `json:"workflow_id"` ReferenceExecution string `json:"reference_execution"` From 141f8f24508dcc92eaed7138cf3e86d90d24c109 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Mon, 27 May 2024 02:58:45 +0530 Subject: [PATCH 3/3] fix[mail-app]: wrapping up --- shared.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.go b/shared.go index 72e754f..bb53fa2 100755 --- a/shared.go +++ b/shared.go @@ -18095,7 +18095,7 @@ func PrepareWorkflowExecution(ctx context.Context, workflow Workflow, request *h backupApikey = user.ApiKey } - if len(user.Orgs) == 1 || user.ActiveOrg.Id == workflowExecution.Workflow.OrgId { + if (len(user.Orgs) == 1 || user.ActiveOrg.Id == workflowExecution.Workflow.OrgId) && action.Name != "send_email_shuffle" { //log.Printf("Choice: %s, %s - %s", user.Username, user.Id, user.ApiKey) action.Parameters[paramKey].Value = user.ApiKey break