Skip to content

Commit

Permalink
feat: correct Id now being passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Warren-Pitterson committed Jan 6, 2025
1 parent 9037b1d commit 08541fd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ public async Task<HttpResponseData> Run([HttpTrigger(AuthorizationLevel.Anonymou
}
else
{
var nextRequest = _createCohortDistributionData.GetNextCohortRequestAudit(requestId);
if (nextRequest.Count != 0)
var nextRequestAudit = _createCohortDistributionData.GetNextCohortRequestAudit(requestId).FirstOrDefault();
var nextRequest = nextRequestAudit?.RequestId;
if (nextRequest != null)
{
cohortDistributionParticipants = _createCohortDistributionData.GetCohortDistributionParticipantsByRequestId(requestId);
cohortDistributionParticipants = _createCohortDistributionData.GetCohortDistributionParticipantsByRequestId(nextRequest);
}
}

Expand Down

0 comments on commit 08541fd

Please sign in to comment.