remove todo

This commit is contained in:
desoliture 2022-01-20 17:09:20 +02:00
parent 16753d2f62
commit c28e13c03c

View File

@ -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!");
} }