fixed initial db state

This commit is contained in:
Flaminel
2025-06-15 01:21:58 +03:00
parent 9e393eebcc
commit 95d39c40ed
5 changed files with 91 additions and 190 deletions

View File

@@ -32,6 +32,9 @@ builder.Logging.AddLogging();
var app = builder.Build();
// Initialize the host
await app.Init();
// Get LoggingConfigManager (will be created if not already registered)
var configManager = app.Services.GetRequiredService<LoggingConfigManager>();
@@ -52,7 +55,4 @@ Log.Logger = logConfig.CreateLogger();
// Configure the HTTP request pipeline
app.ConfigureApi();
// Initialize the host
await app.Init();
await app.RunAsync();