diff --git a/ECMJobRunner.Application/DependencyInjection.cs b/ECMJobRunner.Application/DependencyInjection.cs index f387338..d8886fc 100644 --- a/ECMJobRunner.Application/DependencyInjection.cs +++ b/ECMJobRunner.Application/DependencyInjection.cs @@ -27,6 +27,9 @@ namespace ECMJobRunner.Application #else services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(assembly)); #endif + + // Register AutoMapper with all profiles from this assembly + services.AddAutoMapper(assembly); services.AddRecClient(recClientApiUrl, opt => { opt.LogSuccessfulRequests = true; diff --git a/ECMJobRunner.WebCron/appsettings.json b/ECMJobRunner.WebCron/appsettings.json index 54268bc..4bc43f8 100644 --- a/ECMJobRunner.WebCron/appsettings.json +++ b/ECMJobRunner.WebCron/appsettings.json @@ -6,7 +6,7 @@ } }, "ConnectionStrings": { - "SDD-VMP04-SQL17": "Server=SDD-VMP04-SQL17\\DD_DEVELOP01;Database=DD_ECM;User Id=sa;Password=dd;Encrypt=false;TrustServerCertificate=True;" + "SDD-VMP04-SQL17": "Server=SDD-VHP04-SQL19\\DD_TESTING01;Database=DD_ECM;User Id=sa;Password=123456789dD!;Encrypt=false;TrustServerCertificate=True;" }, "AllowedHosts": "*", "HostingOptions": {