From b6290360d9d299e392c356cf9456d8d5d5cdd25c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 17 May 2024 16:47:23 +0000 Subject: [PATCH 1/2] Bump Hangfire.PostgreSql from 1.19.12 to 1.20.8 Bumps Hangfire.PostgreSql from 1.19.12 to 1.20.8. --- updated-dependencies: - dependency-name: Hangfire.PostgreSql dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- GetIntoTeachingApi/GetIntoTeachingApi.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GetIntoTeachingApi/GetIntoTeachingApi.csproj b/GetIntoTeachingApi/GetIntoTeachingApi.csproj index 4f4a54c40..668d2e88a 100644 --- a/GetIntoTeachingApi/GetIntoTeachingApi.csproj +++ b/GetIntoTeachingApi/GetIntoTeachingApi.csproj @@ -60,7 +60,7 @@ - + From 360f43fd6b6839556939b4d99b9d87a1bcc79dc8 Mon Sep 17 00:00:00 2001 From: Martyn Whitwell Date: Mon, 20 May 2024 11:20:37 +0100 Subject: [PATCH 2/2] update obsolete code --- .../AppStart/ServiceCollectionExtensions.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/GetIntoTeachingApi/AppStart/ServiceCollectionExtensions.cs b/GetIntoTeachingApi/AppStart/ServiceCollectionExtensions.cs index e524fcbbf..ffd3d7d77 100644 --- a/GetIntoTeachingApi/AppStart/ServiceCollectionExtensions.cs +++ b/GetIntoTeachingApi/AppStart/ServiceCollectionExtensions.cs @@ -131,10 +131,11 @@ public static void AddHangfire(this IServiceCollection services, IEnv env, bool config.UseMemoryStorage().WithJobExpirationTimeout(JobConfiguration.ExpirationTimeout); } else - { config.UsePostgreSqlStorage(DbConfiguration.HangfireConnectionString(env), new PostgreSqlStorageOptions - { - SchemaName = "hangfire_postgres" - }); + { + config.UsePostgreSqlStorage(options => + options.UseNpgsqlConnection(DbConfiguration.HangfireConnectionString(env)), + new PostgreSqlStorageOptions { SchemaName = "hangfire_postgres" } + ); } });