1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00

[AC-1772] Check null or whitespace on GatewayCustomerId and BillingEmail (#3398)

* Check null or whitespace on GatewayCustomerId and BillingEmail

* Fixed expiration input
This commit is contained in:
Alex Morask
2023-11-02 10:23:28 -04:00
committed by GitHub
parent abc7b35a3d
commit cfe9812724
2 changed files with 5 additions and 2 deletions

View File

@ -215,7 +215,10 @@ public class OrganizationsController : Controller
try
{
await _stripeSyncService.UpdateCustomerEmailAddress(organization.GatewayCustomerId, organization.BillingEmail);
if (!string.IsNullOrWhiteSpace(organization.GatewayCustomerId) && !string.IsNullOrWhiteSpace(organization.BillingEmail))
{
await _stripeSyncService.UpdateCustomerEmailAddress(organization.GatewayCustomerId, organization.BillingEmail);
}
}
catch (StripeException stripeException)
{