diff --git a/src/API/CompanyName.MyMeetings.API/Startup.cs b/src/API/CompanyName.MyMeetings.API/Startup.cs index 7b87bb1c..e7a3b310 100644 --- a/src/API/CompanyName.MyMeetings.API/Startup.cs +++ b/src/API/CompanyName.MyMeetings.API/Startup.cs @@ -45,7 +45,7 @@ public Startup(IWebHostEnvironment env) .AddEnvironmentVariables("Meetings_") .Build(); - _loggerForApi.Information("Connection string:" + _configuration.GetConnectionString("MeetingsConnectionString")); + _loggerForApi.Information("Connection string:" + _configuration.GetConnectionString(MeetingsConnectionString)); AuthorizationChecker.CheckAllEndpoints(); } @@ -146,20 +146,20 @@ private void InitializeModules(ILifetimeScope container) var emailsConfiguration = new EmailsConfiguration(_configuration["EmailsConfiguration:FromEmail"]); MeetingsStartup.Initialize( - _configuration.GetConnectionString("MeetingsConnectionString"), + _configuration.GetConnectionString(MeetingsConnectionString), executionContextAccessor, _logger, emailsConfiguration, null); AdministrationStartup.Initialize( - _configuration.GetConnectionString("MeetingsConnectionString"), + _configuration.GetConnectionString(MeetingsConnectionString), executionContextAccessor, _logger, null); UserAccessStartup.Initialize( - _configuration.GetConnectionString("MeetingsConnectionString"), + _configuration.GetConnectionString(MeetingsConnectionString), executionContextAccessor, _logger, emailsConfiguration, @@ -168,14 +168,14 @@ private void InitializeModules(ILifetimeScope container) null); PaymentsStartup.Initialize( - _configuration.GetConnectionString("MeetingsConnectionString"), + _configuration.GetConnectionString(MeetingsConnectionString), executionContextAccessor, _logger, emailsConfiguration, null); RegistrationsStartup.Initialize( - _configuration[MeetingsConnectionString], + _configuration.GetConnectionString(MeetingsConnectionString), executionContextAccessor, _logger, emailsConfiguration,