Skip to content

Commit

Permalink
Changed variable and name for when getting Persons from Person API (#596
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aleklundeq authored Oct 3, 2023
1 parent e30d277 commit 92a2fff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public async Task<Dictionary<Guid, FusionPersonProfile>> Handle(GetPersonProfile
var tasks = new List<Task<IEnumerable<ResolvedPersonProfile>>>();

// Max number of identifiers is 500, so we chunk the requests
foreach (var req in request.Identifiers.Chunk(500))
foreach (var identifierBatch in request.Identifiers.Chunk(500))
{
tasks.Add(profileResolver.ResolvePersonsAsync(request.Identifiers));
tasks.Add(profileResolver.ResolvePersonsAsync(identifierBatch));
}

var results = await Task.WhenAll(tasks);
Expand Down

0 comments on commit 92a2fff

Please sign in to comment.