Browse Source

Merge pull request #16089 from wangj90/dev

change GetAsync to FindAsync for organization unit GetCodeOrDefaultAsync method
pull/16096/head
maliming 4 years ago
committed by GitHub
parent
commit
ff28c079af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs

2
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs

@ -122,7 +122,7 @@ public class OrganizationUnitManager : DomainService
public virtual async Task<string> GetCodeOrDefaultAsync(Guid id)
{
var ou = await OrganizationUnitRepository.GetAsync(id);
var ou = await OrganizationUnitRepository.FindAsync(id);
return ou?.Code;
}

Loading…
Cancel
Save