From f8b172ef32c5d8aa908d09f319e5b7ab7333580d Mon Sep 17 00:00:00 2001 From: jrmccannon Date: Fri, 28 Mar 2025 10:57:20 -0500 Subject: [PATCH] Fixing compiler complaints. --- .../Organization/InviteUserOrganizationValidator.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InviteUserOrganizationValidator.cs b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InviteUserOrganizationValidator.cs index 730fa5bde7..14b75bb7ee 100644 --- a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InviteUserOrganizationValidator.cs +++ b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InviteUserOrganizationValidator.cs @@ -7,23 +7,26 @@ public interface IInviteUserOrganizationValidator : IValidator> ValidateAsync(InviteOrganization inviteOrganization) + public Task> ValidateAsync(InviteOrganization inviteOrganization) { if (inviteOrganization.Seats is null) { - return new Valid(inviteOrganization); + return Task.FromResult>( + new Valid(inviteOrganization)); } if (string.IsNullOrWhiteSpace(inviteOrganization.GatewayCustomerId)) { - return new Invalid(new OrganizationNoPaymentMethodFoundError(inviteOrganization)); + return Task.FromResult>( + new Invalid(new OrganizationNoPaymentMethodFoundError(inviteOrganization))); } if (string.IsNullOrWhiteSpace(inviteOrganization.GatewaySubscriptionId)) { - return new Invalid(new OrganizationNoSubscriptionFoundError(inviteOrganization)); + return Task.FromResult>( + new Invalid(new OrganizationNoSubscriptionFoundError(inviteOrganization))); } - return new Valid(inviteOrganization); + return Task.FromResult>(new Valid(inviteOrganization)); } }