diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Extensions.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Extensions.cs index 74ecb972e..43f753956 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Extensions.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Extensions.cs @@ -57,8 +57,6 @@ public static IHostApplicationBuilder AddHangfire(this IHostApplicationBuilder b { if (!builder.Environment.IsUnitTests() && !builder.Environment.IsEndToEndTests()) { - var pgConnectionString = GetPostgresConnectionString(builder.Configuration); - builder.Services.AddHangfire((sp, configuration) => configuration .SetDataCompatibilityLevel(CompatibilityLevel.Version_170) .UseSimpleAssemblyNameTypeSerializer()