From ef4d0767e9c50ce057dc056532ea94dda64ef7d5 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 16 Mar 2026 13:26:08 +0100 Subject: [PATCH] Remove FakeProfileId config and related extension method Removed the GetFakeProfileId extension method and its class from ConfigExtensions.cs, along with the "FakeProfileId" entry from appsettings.json. Also fixed a trailing comma in appsettings.json to ensure valid JSON syntax. --- src/ReC.API/Extensions/ConfigExtensions.cs | 6 ------ src/ReC.API/appsettings.json | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 src/ReC.API/Extensions/ConfigExtensions.cs diff --git a/src/ReC.API/Extensions/ConfigExtensions.cs b/src/ReC.API/Extensions/ConfigExtensions.cs deleted file mode 100644 index 262830c..0000000 --- a/src/ReC.API/Extensions/ConfigExtensions.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace ReC.API.Extensions; - -public static class ConfigurationExtensions -{ - public static int GetFakeProfileId(this IConfiguration config) => config.GetValue("FakeProfileId", 2); -} diff --git a/src/ReC.API/appsettings.json b/src/ReC.API/appsettings.json index 9e4d561..5813084 100644 --- a/src/ReC.API/appsettings.json +++ b/src/ReC.API/appsettings.json @@ -13,6 +13,5 @@ // https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlexception.number "BadRequestSqlExceptionNumbers": [ 515, 547, 2601, 2627, 50000 ] }, - "AddedWho": "ReC.API", - "FakeProfileId": 2 + "AddedWho": "ReC.API" } \ No newline at end of file