Base Edge Processor - Added check for tenant entity
This commit is contained in:
parent
d87fa992c2
commit
bacda7e3f6
@ -488,6 +488,8 @@ public abstract class BaseEdgeProcessor {
|
||||
|
||||
protected boolean isEntityExists(TenantId tenantId, EntityId entityId) {
|
||||
switch (entityId.getEntityType()) {
|
||||
case TENANT:
|
||||
return tenantService.findTenantById(tenantId) != null;
|
||||
case DEVICE:
|
||||
return deviceService.findDeviceById(tenantId, new DeviceId(entityId.getId())) != null;
|
||||
case ASSET:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user