clarify error on execution gen

This commit is contained in:
mr 2024-08-09 11:56:41 +02:00
parent 2ae15c720a
commit f8cf8156bd

View File

@ -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