From f8cf8156bd5650342253b8a2fbddd5e3b1dd56ab Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 9 Aug 2024 11:56:41 +0200 Subject: [PATCH] clarify error on execution gen --- models/workflow/workflow_mongo_accessor.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/workflow/workflow_mongo_accessor.go b/models/workflow/workflow_mongo_accessor.go index 7bda6e0..3f983e7 100644 --- a/models/workflow/workflow_mongo_accessor.go +++ b/models/workflow/workflow_mongo_accessor.go @@ -100,7 +100,10 @@ func (wfa *workflowMongoAccessor) execution(id string, realData *Workflow, delet execs, err := wfa.getExecutions(id, realData) if err == nil && len(execs) > 0 { for _, obj := range execs { - accessor.StoreOne(obj) + _, code, err := accessor.StoreOne(obj) + if code != 200 { + return code, err + } } } else { return 422, err