Browse Source

更新规则链创建

liuxiulin 2 years ago
parent
commit
3c78a93c54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/knowoapi/services/rule_chain.go

+ 1 - 1
services/knowoapi/services/rule_chain.go

@@ -80,7 +80,7 @@ func (a ruleChainService) create(params *models.RuleChainParams) (firstNodeId st
 			ruleNode := models.RuleNode{
 				RecordId:      guid.S(),
 				RuleChainID:   params.RecordId,
-				Configuration: v.MustToJsonString(),
+				Configuration: v.GetString("data"),
 				Type:          nodeType[v.GetString("data.type")],
 				Name:          v.GetString("data.name"),
 				DebugModel:    true,