fixed tenant and customer update
This commit is contained in:
parent
12739b60ce
commit
68eb2b6a3a
@ -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…
x
Reference in New Issue
Block a user