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!");
|
throw new DataValidationException("Entity view should be assigned to tenant!");
|
||||||
} else {
|
} else {
|
||||||
Tenant tenant = tenantService.findTenantById(entityView.getTenantId());
|
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) {
|
if (tenant == null) {
|
||||||
throw new DataValidationException("Entity view is referencing to non-existent tenant!");
|
throw new DataValidationException("Entity view is referencing to non-existent tenant!");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user