From 9f5fd2a18ce3801277a047c5d466fe3da4f8fb34 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Tue, 26 Mar 2019 18:36:46 +0300 Subject: [PATCH] Fix TenantManagement module for TenantConfiguration change. --- .../AbpTenantManagementDomainMappingProfile.cs | 2 +- .../Volo/Abp/TenantManagement/TenantStore.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/AbpTenantManagementDomainMappingProfile.cs b/modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/AbpTenantManagementDomainMappingProfile.cs index 9cd46215de..435421d76d 100644 --- a/modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/AbpTenantManagementDomainMappingProfile.cs +++ b/modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/AbpTenantManagementDomainMappingProfile.cs @@ -8,7 +8,7 @@ namespace Volo.Abp.TenantManagement { public AbpTenantManagementDomainMappingProfile() { - CreateMap() + CreateMap() .ForMember(ti => ti.ConnectionStrings, opts => { opts.MapFrom((tenant, ti) => diff --git a/modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/TenantStore.cs b/modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/TenantStore.cs index cd15ebe1fe..1a32c4a64d 100644 --- a/modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/TenantStore.cs +++ b/modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/TenantStore.cs @@ -24,7 +24,7 @@ namespace Volo.Abp.TenantManagement _currentTenant = currentTenant; } - public async Task FindAsync(string name) + public async Task FindAsync(string name) { using (_currentTenant.Change(null)) //TODO: No need this if we can implement to define host side (or tenant-independent) entities! { @@ -34,11 +34,11 @@ namespace Volo.Abp.TenantManagement return null; } - return _objectMapper.Map(tenant); + return _objectMapper.Map(tenant); } } - public async Task FindAsync(Guid id) + public async Task FindAsync(Guid id) { using (_currentTenant.Change(null)) //TODO: No need this if we can implement to define host side (or tenant-independent) entities! { @@ -48,7 +48,7 @@ namespace Volo.Abp.TenantManagement return null; } - return _objectMapper.Map(tenant); + return _objectMapper.Map(tenant); } } }