Skip to content

Commit

Permalink
fix(cache): building cachekey
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Sep 19, 2024
1 parent 5b04274 commit ba81de3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected override string BuildCacheKey(AcceptType acceptType, string identifier
var shortenedAcceptType = acceptType.ToString().ToLowerInvariant();
return acceptType switch
{
AcceptType.JsonLd => $"oslo/building:{{0}}.{shortenedAcceptType}",
AcceptType.JsonLd => $"oslo/building:{identifier}.{shortenedAcceptType}",
_ => throw new NotImplementedException($"Cannot build CacheKey for type {typeof(AcceptType)}")
};
}
Expand All @@ -131,7 +131,7 @@ protected override string BuildUri(AcceptType acceptType, string identifier)
{
return acceptType switch
{
AcceptType.JsonLd => "/v2/gebouwen/{0}",
AcceptType.JsonLd => $"/v2/gebouwen/{identifier}",
_ => throw new NotImplementedException($"Cannot build Uri for type {typeof(AcceptType)}")
};
}
Expand Down

0 comments on commit ba81de3

Please sign in to comment.