diff --git a/Endpoint/Program.cs b/Endpoint/Program.cs index 4674bc9..7c34446 100644 --- a/Endpoint/Program.cs +++ b/Endpoint/Program.cs @@ -45,7 +45,7 @@ public class Program builder.Configuration.AddJsonFile(Settings.FilePath, optional: true, reloadOnChange: true); builder.Services.AddApplication(); - builder.Services.AddPersistence(builder.Configuration); + builder.Services.AddPersistence(builder.Configuration.Get()?.DbSettings?.ConnectionStringSql ?? string.Empty); builder.Services.AddControllers(); builder.Services.AddCors(options =>