|
@@ -96,8 +96,8 @@ func (a ruleChainService) create(ruleChain *models.RuleChain) error {
|
|
|
RecordId: guid.S(),
|
|
|
RuleChainId: ruleChain.RecordId,
|
|
|
FromID: nodeMap[v.Source.Cell].RecordId,
|
|
|
- FromType: nodeMap[v.Target.Cell].Type,
|
|
|
- ToID: nodeMap[v.Source.Cell].RecordId,
|
|
|
+ FromType: nodeMap[v.Source.Cell].Type,
|
|
|
+ ToID: nodeMap[v.Target.Cell].RecordId,
|
|
|
ToType: nodeMap[v.Target.Cell].Type,
|
|
|
RelationType: v.Data.Label,
|
|
|
})
|