clarify error on execution gen
This commit is contained in:
parent
2ae15c720a
commit
f8cf8156bd
@ -100,7 +100,10 @@ func (wfa *workflowMongoAccessor) execution(id string, realData *Workflow, delet
|
|||||||
execs, err := wfa.getExecutions(id, realData)
|
execs, err := wfa.getExecutions(id, realData)
|
||||||
if err == nil && len(execs) > 0 {
|
if err == nil && len(execs) > 0 {
|
||||||
for _, obj := range execs {
|
for _, obj := range execs {
|
||||||
accessor.StoreOne(obj)
|
_, code, err := accessor.StoreOne(obj)
|
||||||
|
if code != 200 {
|
||||||
|
return code, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return 422, err
|
return 422, err
|
||||||
|
Loading…
Reference in New Issue
Block a user