From ba81de3d8b3964e5781c1beef80c71bc678276a1 Mon Sep 17 00:00:00 2001 From: Arne Dumarey Date: Thu, 19 Sep 2024 15:47:29 +0200 Subject: [PATCH] fix(cache): building cachekey --- .../BuildingProjections.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BuildingRegistry.Projections.LastChangedList/BuildingProjections.cs b/src/BuildingRegistry.Projections.LastChangedList/BuildingProjections.cs index 10c9feb63..e26290532 100644 --- a/src/BuildingRegistry.Projections.LastChangedList/BuildingProjections.cs +++ b/src/BuildingRegistry.Projections.LastChangedList/BuildingProjections.cs @@ -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)}") }; } @@ -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)}") }; }