Add temp jsonpath options during v3 => v4 migration prep
This commit is contained in:
parent
e0406378cb
commit
8a54eda4a0
@ -14,20 +14,15 @@ namespace InternalUtilities
|
||||
|
||||
public static string AccountsSettingsFile => Path.Combine(Configuration.Instance.LibationFiles, "AccountsSettings.json");
|
||||
|
||||
public static string GetJsonPath(
|
||||
//string username
|
||||
////, string locale
|
||||
)
|
||||
// TEMP
|
||||
public static string GetJsonPath() => null;
|
||||
|
||||
public static string GetJsonPath(string username, string locale)
|
||||
{
|
||||
return null;
|
||||
var usernameSanitized = JsonConvert.ToString(username);
|
||||
var localeSanitized = JsonConvert.ToString(locale);
|
||||
|
||||
|
||||
//var usernameSanitized = JsonConvert.ToString(username);
|
||||
|
||||
////var localeSanitized = JsonConvert.ToString(locale);
|
||||
////return $"$.AccountsSettings[?(@.Username == '{usernameSanitized}' && @.IdentityTokens.Locale == '{localeSanitized}')].IdentityTokens";
|
||||
|
||||
//return $"$.AccountsSettings[?(@.Username == '{usernameSanitized}')].IdentityTokens";
|
||||
return $"$.AccountsSettings[?(@.Username == '{usernameSanitized}' && @.IdentityTokens.Locale == '{localeSanitized}')].IdentityTokens";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
|
||||
<Version>3.1.12.86</Version>
|
||||
<Version>3.1.12.88</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user