From 7e92a58c8ddf4f9810cf90faf5f0ee87d3907d44 Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 11 Aug 2019 22:59:05 +0200 Subject: [PATCH] Fix API project building --- PluralKit.API/Startup.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.