refactor: send provider

This commit is contained in:
Polianin Nikita 2024-05-30 20:26:42 +03:00
parent 62ccf94222
commit 8a103831eb

View File

@ -115,7 +115,7 @@ public class Program
builder.Services.Configure<GeneralConfig>(builder.Configuration);
builder.Services.AddApplication();
builder.Services.AddPersistence(builder.Configuration.Get<GeneralConfig>()?.DbSettings?.ConnectionStringSql ?? string.Empty);
builder.Services.AddPersistence(generalConfig?.DbSettings?.DatabaseProvider ?? DatabaseProvider.Sqlite, generalConfig?.DbSettings?.ConnectionStringSql ?? string.Empty);
builder.Services.AddControllers();
builder.Services.AddSingleton<IMaintenanceModeNotConfigureService, MaintenanceModeNotConfigureService>();