mirror of
https://github.com/bitwarden/server.git
synced 2025-04-25 23:02:17 -05:00
Add invoice null check (#5642)
This commit is contained in:
parent
5db89f29f2
commit
cff949c231
@ -93,7 +93,9 @@ public class OrganizationBillingService(
|
||||
|
||||
var isOnSecretsManagerStandalone = await IsOnSecretsManagerStandalone(organization, customer, subscription);
|
||||
|
||||
var invoice = await stripeAdapter.InvoiceGetAsync(subscription.LatestInvoiceId, new InvoiceGetOptions());
|
||||
var invoice = !string.IsNullOrEmpty(subscription.LatestInvoiceId)
|
||||
? await stripeAdapter.InvoiceGetAsync(subscription.LatestInvoiceId, new InvoiceGetOptions())
|
||||
: null;
|
||||
|
||||
return new OrganizationMetadata(
|
||||
isEligibleForSelfHost,
|
||||
|
Loading…
x
Reference in New Issue
Block a user