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:
@@ -1,6 +0,0 @@
|
|||||||
namespace ReC.API.Extensions;
|
|
||||||
|
|
||||||
public static class ConfigurationExtensions
|
|
||||||
{
|
|
||||||
public static int GetFakeProfileId(this IConfiguration config) => config.GetValue("FakeProfileId", 2);
|
|
||||||
}
|
|
||||||
@@ -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
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user