From 87da491ed63aed40a97a80db175fa05c3f0122a1 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Sun, 24 May 2026 13:50:41 +0200 Subject: [PATCH] Refactored connection string name --- .../Extensions/Postgres.cs | 2 +- .../appsettings.json | 2 +- .../LiteCharms.Features.csproj | 5 ----- LiteCharms.Features/appsettings.json | 22 ------------------- 4 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 LiteCharms.Features/appsettings.json diff --git a/LiteCharms.Features.MidrandBooks/Extensions/Postgres.cs b/LiteCharms.Features.MidrandBooks/Extensions/Postgres.cs index 11e81b0..86173d9 100644 --- a/LiteCharms.Features.MidrandBooks/Extensions/Postgres.cs +++ b/LiteCharms.Features.MidrandBooks/Extensions/Postgres.cs @@ -4,7 +4,7 @@ namespace LiteCharms.Features.MidrandBooks.Extensions; public static class Postgres { - public const string MidrandShopDbConfigName = "PostgresMidrandShop"; + public const string MidrandShopDbConfigName = "PostgresMidrandBooks"; public static IServiceCollection AddMidrandShopDatabase(this IServiceCollection services, IConfiguration configuration) { diff --git a/LiteCharms.Features.MidrandBooks/appsettings.json b/LiteCharms.Features.MidrandBooks/appsettings.json index aec5c2e..e3261e6 100644 --- a/LiteCharms.Features.MidrandBooks/appsettings.json +++ b/LiteCharms.Features.MidrandBooks/appsettings.json @@ -10,7 +10,7 @@ "Monitoring": { "ApiKey": "", "Address": "http://aspire-dashboard-service.aspire.svc.cluster.local:18889", - "ServiceName": "LiteCharms.LeadGenerator" + "ServiceName": "MidrandBooks" }, "Logging": { "LogLevel": { diff --git a/LiteCharms.Features/LiteCharms.Features.csproj b/LiteCharms.Features/LiteCharms.Features.csproj index 41d7dcf..fab834b 100644 --- a/LiteCharms.Features/LiteCharms.Features.csproj +++ b/LiteCharms.Features/LiteCharms.Features.csproj @@ -155,10 +155,5 @@ - - - PreserveNewest - - diff --git a/LiteCharms.Features/appsettings.json b/LiteCharms.Features/appsettings.json deleted file mode 100644 index aec5c2e..0000000 --- a/LiteCharms.Features/appsettings.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Email": { - "Credentials": { - "Username": "shop@litecharms.co.za" - }, - "Port": 465, - "Host": "mail.litecharms.co.za", - "UseSsl": true - }, - "Monitoring": { - "ApiKey": "", - "Address": "http://aspire-dashboard-service.aspire.svc.cluster.local:18889", - "ServiceName": "LiteCharms.LeadGenerator" - }, - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*" -}