Skip to content

Commit

Permalink
fix: await brResultTask in GetOrganizationsFromBR
Browse files Browse the repository at this point in the history
  • Loading branch information
SondreJDigdir committed Sep 9, 2024
1 parent 651de02 commit 87f4d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dan.Plugin.Tilda/Tilda.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private async Task<List<EvidenceValue>> GetEvidenceValuesTildaPdfReportV1(Eviden
{
throw new EvidenceSourcePermanentClientException(1, $"Missing required parameter internTilsynsId");
}

string filter = req.SubjectParty?.NorwegianOrganizationNumber;
byte[] result;

Expand Down Expand Up @@ -449,7 +449,7 @@ private async Task<List<TildaRegistryEntry>> GetOrganizationsFromBR(string organ
var accountsInformationTask = Helpers.GetAnnualTurnoverFromBR(organizationNumber, _client, _policyRegistry);
var result = new List<TildaRegistryEntry>();

await Task.WhenAll(accountsInformationTask);
await Task.WhenAll(accountsInformationTask, brResultTask);
if (brResultTask.Result.Count > 1)
{
// TODO! Does RR return data for subunits or should this just be null?
Expand Down

0 comments on commit 87f4d7c

Please sign in to comment.