This commit is contained in:
YevhenBondarenko 2022-05-03 09:01:19 +02:00
parent 547713f30a
commit 41fa5d949b

View File

@ -46,7 +46,7 @@ public class DefaultTbTenantService implements TbTenantService {
Tenant oldTenant = updated ? tenantService.findTenantById(tenant.getId()) : null; Tenant oldTenant = updated ? tenantService.findTenantById(tenant.getId()) : null;
Tenant savedTenant = tenantService.saveTenant(tenant); Tenant savedTenant = tenantService.saveTenant(tenant);
tenantProfileCache.evict(tenant.getId()); tenantProfileCache.evict(savedTenant.getId());
TenantProfile oldTenantProfile = oldTenant != null ? tenantProfileService.findTenantProfileById(TenantId.SYS_TENANT_ID, oldTenant.getTenantProfileId()) : null; TenantProfile oldTenantProfile = oldTenant != null ? tenantProfileService.findTenantProfileById(TenantId.SYS_TENANT_ID, oldTenant.getTenantProfileId()) : null;
TenantProfile newTenantProfile = tenantProfileService.findTenantProfileById(TenantId.SYS_TENANT_ID, savedTenant.getTenantProfileId()); TenantProfile newTenantProfile = tenantProfileService.findTenantProfileById(TenantId.SYS_TENANT_ID, savedTenant.getTenantProfileId());