Skip to content

Commit

Permalink
refactor: pass identity to ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaVetnic committed Jan 24, 2024
1 parent 622e82e commit 93b8b1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public Handler(IIdentitiesRepository repository)
public async Task<ListIdentitiesResponse> Handle(ListIdentitiesQuery request, CancellationToken cancellationToken)
{
var dbPaginationResult = await _identitiesRepository.FindAll(request.PaginationFilter, cancellationToken);
var identityDtos = dbPaginationResult.ItemsOnPage.Select(el => new IdentitySummaryDTO(el.Address, el.ClientId, el.PublicKey, el.IdentityVersion, el.CreatedAt, el.Devices, el.TierId)).ToList();
var identityDtos = dbPaginationResult.ItemsOnPage.Select(el => new IdentitySummaryDTO(el)).ToList();

return new ListIdentitiesResponse(identityDtos, request.PaginationFilter, dbPaginationResult.TotalNumberOfItems);
}
Expand Down

0 comments on commit 93b8b1c

Please sign in to comment.