Skip to content

Commit

Permalink
fix: lastchangedlist projections
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD authored Sep 26, 2023
1 parent b1d6cc6 commit 71b6c45
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected override string BuildCacheKey(AcceptType acceptType, string identifier
var shortenedAcceptType = acceptType.ToString().ToLowerInvariant();
return acceptType switch
{
AcceptType.JsonLd => $"oslo/postalinfo:{{0}}.{shortenedAcceptType}",
AcceptType.JsonLd => string.Format("oslo/postalinfo:{{0}}.{1}", identifier, shortenedAcceptType),
_ => throw new NotImplementedException($"Cannot build CacheKey for type {typeof(AcceptType)}")
};
}
Expand All @@ -63,7 +63,7 @@ protected override string BuildUri(AcceptType acceptType, string identifier)
{
return acceptType switch
{
AcceptType.JsonLd => "/v2/postcodes/{0}",
AcceptType.JsonLd => string.Format("/v2/postcodes/{{0}}", identifier),
_ => throw new NotImplementedException($"Cannot build Uri for type {typeof(AcceptType)}")
};
}
Expand Down

0 comments on commit 71b6c45

Please sign in to comment.