This commit is contained in:
Łukasz Domeradzki
2025-06-10 11:19:20 +02:00
parent e2194894ce
commit 4f279f1068
2 changed files with 6 additions and 3 deletions

View File

@@ -2351,12 +2351,15 @@ public sealed class ArchiWebHandler : IDisposable {
}
}
private async ValueTask<bool> UnlockParentalAccount(string parentalCode) {
private async Task<bool> UnlockParentalAccount(string parentalCode) {
ArgumentException.ThrowIfNullOrEmpty(parentalCode);
Bot.ArchiLogger.LogGenericInfo(Strings.UnlockingParentalAccount);
bool[] results = await Task.WhenAll(UnlockParentalAccountForService(SteamCommunityURL, parentalCode), UnlockParentalAccountForService(SteamStoreURL, parentalCode)).ConfigureAwait(false);
bool[] results = await Task.WhenAll(
UnlockParentalAccountForService(SteamCommunityURL, parentalCode),
UnlockParentalAccountForService(SteamStoreURL, parentalCode)
).ConfigureAwait(false);
if (results.Any(static result => !result)) {
Bot.ArchiLogger.LogGenericWarning(Strings.WarningFailed);