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.
This commit is contained in:
2026-03-16 13:26:08 +01:00
parent f15725ade2
commit ef4d0767e9
2 changed files with 1 additions and 8 deletions

View File

@@ -1,6 +0,0 @@
namespace ReC.API.Extensions;
public static class ConfigurationExtensions
{
public static int GetFakeProfileId(this IConfiguration config) => config.GetValue("FakeProfileId", 2);
}

View File

@@ -13,6 +13,5 @@
// https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlexception.number // https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlexception.number
"BadRequestSqlExceptionNumbers": [ 515, 547, 2601, 2627, 50000 ] "BadRequestSqlExceptionNumbers": [ 515, 547, 2601, 2627, 50000 ]
}, },
"AddedWho": "ReC.API", "AddedWho": "ReC.API"
"FakeProfileId": 2
} }