Skip to content

Commit

Permalink
refactor: FlowNodeBase
Browse files Browse the repository at this point in the history
  • Loading branch information
zhennann committed Dec 14, 2023
1 parent 695bd63 commit faa8db8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/module-system/a-flow/backend/src/common/flowNodeBase.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = class FlowNodeBase {
constructor(ctx, options) {
this.ctx = ctx;
constructor(options) {
if (options) {
this.flowInstance = options.flowInstance;
this.nodeInstance = options.nodeInstance;
Expand Down
2 changes: 1 addition & 1 deletion src/module-system/a-flow/backend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const FlowEdgeBase = require('./common/flowEdgeBase.js');

// FlowBehaviorBase/FlowNodeBase/FlowEdgeBase
module.meta.class.FlowBehaviorBase = FlowBehaviorBase;
module.meta.class.FlowNodeBase = FlowNodeBase;

module.exports = app => {
app.meta.FlowNodeBase = FlowNodeBase;
app.meta.FlowEdgeBase = FlowEdgeBase;

// aops
Expand Down
2 changes: 1 addition & 1 deletion src/module/a-flownodebooster

0 comments on commit faa8db8

Please sign in to comment.