From c6a262ecf82d4c816829ae912682810f1621e993 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Tue, 10 Dec 2024 18:32:12 +0000 Subject: [PATCH] Fix EstablishmentRefresher lifetime (#1746) --- .../Services/Establishments/ServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Services/Establishments/ServiceCollectionExtensions.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Services/Establishments/ServiceCollectionExtensions.cs index 2c1bcd2e0..21aa2fada 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Services/Establishments/ServiceCollectionExtensions.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Services/Establishments/ServiceCollectionExtensions.cs @@ -18,7 +18,7 @@ public static IHostApplicationBuilder AddGias(this IHostApplicationBuilder build .ValidateOnStart(); builder.Services - .AddSingleton() + .AddTransient() .AddSingleton() .AddHttpClient((sp, httpClient) => {