fixed tenant and customer update

This commit is contained in:
IrynaMatveieva 2025-04-11 17:14:32 +03:00
parent 12739b60ce
commit 68eb2b6a3a

View File

@ -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;
};
}