From 71b6c45839f3176fb79346c6f484b31336d8e962 Mon Sep 17 00:00:00 2001 From: Arne Dumarey Date: Tue, 26 Sep 2023 08:33:57 +0200 Subject: [PATCH] fix: lastchangedlist projections --- .../LastChangedListProjections.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PostalRegistry.Projections.LastChangedList/LastChangedListProjections.cs b/src/PostalRegistry.Projections.LastChangedList/LastChangedListProjections.cs index 5b40def0..f26460dd 100644 --- a/src/PostalRegistry.Projections.LastChangedList/LastChangedListProjections.cs +++ b/src/PostalRegistry.Projections.LastChangedList/LastChangedListProjections.cs @@ -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)}") }; } @@ -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)}") }; }