From 0e27eb37816c92e2bab2375eba9713b676a8bf30 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Fri, 18 Mar 2022 13:54:43 +0800 Subject: [PATCH] fix(saas): The query for a tenant must contain editions --- .../LINGYUN/Abp/Saas/Tenants/TenantAppService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs b/aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs index 8527ab6c3..a6c91e59b 100644 --- a/aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs +++ b/aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs @@ -32,7 +32,7 @@ public class TenantAppService : AbpSaasAppServiceBase, ITenantAppService public virtual async Task GetAsync(Guid id) { - var tenant = await TenantRepository.FindAsync(id, false); + var tenant = await TenantRepository.FindAsync(id); if (tenant == null) { throw new UserFriendlyException(L["TenantNotFoundById", id]); @@ -43,7 +43,7 @@ public class TenantAppService : AbpSaasAppServiceBase, ITenantAppService public virtual async Task GetAsync(string name) { - var tenant = await TenantRepository.FindByNameAsync(name, false); + var tenant = await TenantRepository.FindByNameAsync(name); if (tenant == null) { throw new UserFriendlyException(L["TenantNotFoundByName", name]); @@ -107,7 +107,7 @@ public class TenantAppService : AbpSaasAppServiceBase, ITenantAppService [Authorize(AbpSaasPermissions.Tenants.Update)] public virtual async Task UpdateAsync(Guid id, TenantUpdateDto input) { - var tenant = await TenantRepository.GetAsync(id, false); + var tenant = await TenantRepository.GetAsync(id); if (!string.Equals(tenant.Name, input.Name)) {