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();