Skip to content

Commit

Permalink
feat: fix queryUserInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoxkang committed Dec 18, 2024
1 parent 432b504 commit 77d8109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ namespace CAServer.CAAccount.Dtos;

public class CAHolderWithAddressResultDto : CAHolderDto
{
public string CaAddress { get; set; }
public string Address { get; set; }
}
2 changes: 1 addition & 1 deletion src/CAServer.Application/CAAccount/NickNameAppService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ QueryContainer Filter(QueryContainerDescriptor<CAHolderIndex> q) =>
foreach (var caHolderIndex in holders.Item2)
{
var caHolderWithAddressResultDto = ObjectMapper.Map<CAHolderIndex, CAHolderWithAddressResultDto>(caHolderIndex);
caHolderWithAddressResultDto.CaAddress = guardiansDto.CaHolderInfo.First(t => t.CaHash == caHolderIndex.CaHash).CaAddress;
caHolderWithAddressResultDto.Address = guardiansDto.CaHolderInfo.First(t => t.CaHash == caHolderIndex.CaHash).CaAddress;
result.Add(caHolderWithAddressResultDto);
}

Expand Down

0 comments on commit 77d8109

Please sign in to comment.