From c95559c7d304f4849289e1ba5b8bca2849adfa15 Mon Sep 17 00:00:00 2001 From: devinleighsmith <41091511+devinleighsmith@users.noreply.github.com> Date: Tue, 15 Nov 2022 13:04:55 -0800 Subject: [PATCH] HOTFIX: psp-4851 Correct issue with geocoder key not being present in "future" requests. (#2434) Co-authored-by: Smith --- source/backend/api/Pims.Api.csproj | 4 ++-- .../geocoder/Extensions/ServiceCollectionExtensions.cs | 3 ++- source/frontend/package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source/backend/api/Pims.Api.csproj b/source/backend/api/Pims.Api.csproj index a899acca00..c4b9ee5a46 100644 --- a/source/backend/api/Pims.Api.csproj +++ b/source/backend/api/Pims.Api.csproj @@ -2,8 +2,8 @@ 0ef6255f-9ea0-49ec-8c65-c172304b4926 - 2.2.0-39.24 - 2.2.0-39.24 + 2.2.1-39.24 + 2.2.1-39.24 2.2.0.39 true 16BC0468-78F6-4C91-87DA-7403C919E646 diff --git a/source/backend/geocoder/Extensions/ServiceCollectionExtensions.cs b/source/backend/geocoder/Extensions/ServiceCollectionExtensions.cs index cf7c441ab8..d2a0f0b0e6 100644 --- a/source/backend/geocoder/Extensions/ServiceCollectionExtensions.cs +++ b/source/backend/geocoder/Extensions/ServiceCollectionExtensions.cs @@ -17,10 +17,11 @@ public static class ServiceCollectionExtensions /// public static IServiceCollection AddGeocoderService(this IServiceCollection services, IConfigurationSection section) { + // In this instance the auth service is bundled with the geocoder service itself, and the auth service is intended to be a singleton. return services .Configure(section) .AddSingleton() - .AddScoped(); + .AddSingleton(); } } } diff --git a/source/frontend/package.json b/source/frontend/package.json index 2991963f38..ef169a2f4d 100644 --- a/source/frontend/package.json +++ b/source/frontend/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "2.2.0-39.24", + "version": "2.2.1-39.24", "private": true, "dependencies": { "@bcgov/bc-sans": "1.0.1",