From 681139b69da2b44c281810fe794759a2493ec196 Mon Sep 17 00:00:00 2001 From: Aleksander Lund Date: Tue, 3 Oct 2023 13:40:29 +0200 Subject: [PATCH] Changed variable and name for when getting Persons from Person API --- .../api/Fusion.Resources.Domain/Queries/GetPersonProfiles.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/api/Fusion.Resources.Domain/Queries/GetPersonProfiles.cs b/src/backend/api/Fusion.Resources.Domain/Queries/GetPersonProfiles.cs index 86f7590f2..bfb9b0099 100644 --- a/src/backend/api/Fusion.Resources.Domain/Queries/GetPersonProfiles.cs +++ b/src/backend/api/Fusion.Resources.Domain/Queries/GetPersonProfiles.cs @@ -34,9 +34,9 @@ public async Task> Handle(GetPersonProfile var tasks = new List>>(); // 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);