Skip to content

Commit

Permalink
fix flow wrong flow status on empty yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gy2006 committed Nov 23, 2020
1 parent 2119c8f commit ac026e5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,13 @@ public Flow confirm(String name, ConfirmOption option) {

flow.setStatus(Status.CONFIRMED);

// flow will be saved in saveYml
// flow instance will be saved in saveYml
if (option.hasYml()) {
ymlService.saveYml(flow, option.getYaml());
return flow;
}

return flow;
return flowDao.save(flow);
}

@Override
Expand Down

0 comments on commit ac026e5

Please sign in to comment.