Browse Source

fixed tenant and customer update

pull/13189/head
IrynaMatveieva 1 year ago
parent
commit
68eb2b6a3a
  1. 3
      application/src/main/java/org/thingsboard/server/actors/calculatedField/CalculatedFieldManagerMessageProcessor.java

3
application/src/main/java/org/thingsboard/server/actors/calculatedField/CalculatedFieldManagerMessageProcessor.java

@ -535,8 +535,7 @@ public class CalculatedFieldManagerMessageProcessor extends AbstractContextAware
return switch (entityId.getEntityType()) {
case ASSET -> assetProfileCache.get(tenantId, (AssetId) entityId).getId();
case DEVICE -> deviceProfileCache.get(tenantId, (DeviceId) entityId).getId();
default ->
throw new IllegalArgumentException("'" + entityId.getEntityType() + "' is not profile entity." + entityId);
default -> null;
};
}

Loading…
Cancel
Save