File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
core/src/main/java/com/flowci/core/flow/service Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1717package com .flowci .core .flow .service ;
1818
1919import com .flowci .core .common .manager .SpringEventManager ;
20+ import com .flowci .core .flow .dao .FlowDao ;
2021import com .flowci .core .flow .dao .YmlDao ;
2122import com .flowci .core .flow .domain .Flow ;
2223import com .flowci .core .flow .domain .Yml ;
@@ -55,6 +56,9 @@ public class YmlServiceImpl implements YmlService {
5556 @ Autowired
5657 private YmlDao ymlDao ;
5758
59+ @ Autowired
60+ private FlowDao flowDao ;
61+
5862 @ Autowired
5963 private SpringEventManager eventManager ;
6064
@@ -102,6 +106,7 @@ public Yml saveYml(Flow flow, String yml) {
102106 Vars <String > vars = flow .getVariables ();
103107 vars .clear ();
104108 vars .merge (root .getEnvironments ());
109+ flowDao .save (flow );
105110
106111 // update cron task
107112 cronService .update (flow , root , ymlObj );
You can’t perform that action at this time.
0 commit comments