id on peer
This commit is contained in:
parent
8751d36b34
commit
392cf1cf1a
@ -93,10 +93,13 @@ func (wfa *workflowMongoAccessor) book(id string, realData *Workflow, execs []*w
|
||||
return errors.New("no path found")
|
||||
}
|
||||
res, code, _ := wfa.LoadOne(id)
|
||||
if code == 200 {
|
||||
if code != 200 {
|
||||
return errors.New("could not load workflow")
|
||||
}
|
||||
r := res.(*Workflow)
|
||||
if realData.Schedule == nil && r.Schedule == nil {
|
||||
return nil
|
||||
}
|
||||
g := r.Graph
|
||||
if realData.Graph != nil {
|
||||
g = realData.Graph
|
||||
|
Loading…
Reference in New Issue
Block a user