Browse Source

fixed removing relations between rule nodes

pull/10713/head
YevhenBondarenko 2 years ago
parent
commit
ab033590f0
  1. 1
      dao/src/main/java/org/thingsboard/server/dao/rule/BaseRuleChainService.java

1
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) {

Loading…
Cancel
Save