diff --git a/server/StrDss.Hangfire/Program.cs b/server/StrDss.Hangfire/Program.cs index e3ad2909..7313cdfe 100644 --- a/server/StrDss.Hangfire/Program.cs +++ b/server/StrDss.Hangfire/Program.cs @@ -104,7 +104,11 @@ .SetDataCompatibilityLevel(CompatibilityLevel.Version_170) .UseSimpleAssemblyNameTypeSerializer() .UseRecommendedSerializerSettings() - .UsePostgreSqlStorage(connString)); + .UsePostgreSqlStorage((option) => + { + option.UseNpgsqlConnection(connString); + } +)); builder.Services.AddHangfireServer(options => {