remove todo
This commit is contained in:
parent
16753d2f62
commit
c28e13c03c
@ -447,7 +447,6 @@ public class EntityViewServiceImpl extends AbstractEntityService implements Enti
|
||||
throw new DataValidationException("Entity view should be assigned to tenant!");
|
||||
} else {
|
||||
Tenant tenant = tenantService.findTenantById(entityView.getTenantId());
|
||||
// TODO: 13.01.22 Instead of finding and checking for null need to create and use tenantService.exists()
|
||||
if (tenant == null) {
|
||||
throw new DataValidationException("Entity view is referencing to non-existent tenant!");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user