Skip to content

Commit

Permalink
brrrrapppp
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Nov 22, 2024
1 parent 0d4ce7f commit e6fe104
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ public async Task<AuthorizedPartiesResult> GetAuthorizedParties(IPartyIdentifier
CancellationToken cancellationToken = default)
{
var authorizedPartiesRequest = new AuthorizedPartiesRequest(authenticatedParty);
var authorizedParties = await _partiesCache.GetOrSetAsync(authorizedPartiesRequest.GenerateCacheKey(), async token
=> await PerformAuthorizedPartiesRequest(authorizedPartiesRequest, token), token: cancellationToken);

// Disabled until this bug is fixed: https://github.com/digdir/dialogporten/issues/1226
// var authorizedParties = await _partiesCache.GetOrSetAsync(authorizedPartiesRequest.GenerateCacheKey(), async token
// => await PerformAuthorizedPartiesRequest(authorizedPartiesRequest, token), token: cancellationToken);

var authorizedParties = await PerformAuthorizedPartiesRequest(authorizedPartiesRequest, cancellationToken);

return flatten ? GetFlattenedAuthorizedParties(authorizedParties) : authorizedParties;
}
Expand Down

0 comments on commit e6fe104

Please sign in to comment.