Browse Source
Merge pull request #14807 from irynamatveieva/fix/relation-update
Fixed relation update handling in calculated fields
pull/14815/head
Viacheslav Klimov
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
application/src/main/java/org/thingsboard/server/actors/calculatedField/CalculatedFieldManagerMessageProcessor.java
|
|
|
@ -384,6 +384,9 @@ public class CalculatedFieldManagerMessageProcessor extends AbstractContextAware |
|
|
|
EntityId mainId, |
|
|
|
MultipleTbCallback parentCallback, |
|
|
|
TriConsumer<EntityId, CalculatedFieldCtx, TbCallback> relationAction) { |
|
|
|
if (isMyPartition(mainId, parentCallback)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
List<CalculatedFieldCtx> cfsByEntityIdAndProfile = getCalculatedFieldsByEntityIdAndProfile(mainId); |
|
|
|
if (cfsByEntityIdAndProfile.isEmpty()) { |
|
|
|
parentCallback.onSuccess(); |
|
|
|
|