Browse Source
Merge pull request #10713 from YevhenBondarenko/fix/rule-chain-relations
fixed removing relations between rule nodes
pull/10714/head
Andrew Shvayka
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
dao/src/main/java/org/thingsboard/server/dao/rule/BaseRuleChainService.java
|
|
|
@ -197,6 +197,7 @@ public class BaseRuleChainService extends AbstractEntityService implements RuleC |
|
|
|
List<RuleNodeUpdateResult> updatedRuleNodes = new ArrayList<>(); |
|
|
|
List<RuleNode> existingRuleNodes = getRuleChainNodes(tenantId, ruleChainMetaData.getRuleChainId()); |
|
|
|
for (RuleNode existingNode : existingRuleNodes) { |
|
|
|
relationService.deleteEntityRelations(tenantId, existingNode.getId()); |
|
|
|
Integer index = ruleNodeIndexMap.get(existingNode.getId()); |
|
|
|
RuleNode newRuleNode = null; |
|
|
|
if (index != null) { |
|
|
|
|