diff --git a/PluralKit.API/Startup.cs b/PluralKit.API/Startup.cs index 974c615e..8437031f 100644 --- a/PluralKit.API/Startup.cs +++ b/PluralKit.API/Startup.cs @@ -33,7 +33,9 @@ namespace PluralKit.API .AddTransient(_ => Configuration.GetSection("PluralKit").Get() ?? new CoreConfig()) .AddSingleton(svc => InitUtils.InitLogger(svc.GetRequiredService(), "api")) - .AddSingleton(svc => new DbConnectionFactory(svc.GetRequiredService().Database)); + + .AddTransient() + .AddTransient(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.