From 1e72072b3a69a33428d9c568edc3b31ee5ea912c Mon Sep 17 00:00:00 2001 From: jrmccannon Date: Fri, 28 Mar 2025 10:00:02 -0500 Subject: [PATCH] Fixing compiler complaint. --- .../Validation/GlobalSettings/EnvironmentValidator.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/GlobalSettings/EnvironmentValidator.cs b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/GlobalSettings/EnvironmentValidator.cs index a568481a8e..6f2b672806 100644 --- a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/GlobalSettings/EnvironmentValidator.cs +++ b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/GlobalSettings/EnvironmentValidator.cs @@ -6,8 +6,9 @@ public interface IEnvironmentValidator : IValidator; public class EnvironmentValidator : IEnvironmentValidator { - public async Task> ValidateAsync(EnvironmentRequest value) => - value.IsSelfHosted && value.PasswordManagerSubscriptionUpdate.SeatsRequiredToAdd > 0 ? - new Invalid(new CannotAutoScaleOnSelfHostError(value)) : - new Valid(value); + public Task> ValidateAsync(EnvironmentRequest value) => + Task.FromResult>( + value.IsSelfHosted && value.PasswordManagerSubscriptionUpdate.SeatsRequiredToAdd > 0 ? + new Invalid(new CannotAutoScaleOnSelfHostError(value)) : + new Valid(value)); }