From 70df9cd89321da0fe885e6678550f0ccdaa3f7b0 Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 13 Jun 2020 19:21:24 +0200 Subject: [PATCH] Fix API project build --- PluralKit.API/Program.cs | 2 +- PluralKit.API/Startup.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/PluralKit.API/Program.cs b/PluralKit.API/Program.cs index c8c4a6cf..e3946709 100644 --- a/PluralKit.API/Program.cs +++ b/PluralKit.API/Program.cs @@ -11,7 +11,7 @@ namespace PluralKit.API { public static void Main(string[] args) { - InitUtils.Init(); + Database.InitStatic(); CreateHostBuilder(args).Build().Run(); } diff --git a/PluralKit.API/Startup.cs b/PluralKit.API/Startup.cs index ca1862c7..de975d8f 100644 --- a/PluralKit.API/Startup.cs +++ b/PluralKit.API/Startup.cs @@ -86,8 +86,6 @@ namespace PluralKit.API // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - Database.InitStatic(); - if (env.IsDevelopment()) { app.UseDeveloperExceptionPage();