Fix API project build

This commit is contained in:
Ske 2020-06-13 19:21:24 +02:00
parent 1c2ebdc658
commit 70df9cd893
2 changed files with 1 additions and 3 deletions

View File

@ -11,7 +11,7 @@ namespace PluralKit.API
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
InitUtils.Init(); Database.InitStatic();
CreateHostBuilder(args).Build().Run(); CreateHostBuilder(args).Build().Run();
} }

View File

@ -86,8 +86,6 @@ namespace PluralKit.API
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{ {
Database.InitStatic();
if (env.IsDevelopment()) if (env.IsDevelopment())
{ {
app.UseDeveloperExceptionPage(); app.UseDeveloperExceptionPage();