1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-20 11:04:31 -05:00

[PM-17064] 500 error on Free org Upgrade with Saved Payment Method (#5266)

This commit is contained in:
Jonas Hendrickx 2025-01-15 16:05:38 +01:00 committed by GitHub
parent cc2128c97a
commit adab8e622a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2087,12 +2087,12 @@ public class StripePaymentService : IPaymentService
if (gatewayCustomer.Discount != null)
{
options.Discounts.Add(new InvoiceDiscountOptions
{
Discount = gatewayCustomer.Discount.Id
});
options.Discounts.Add(new InvoiceDiscountOptions { Discount = gatewayCustomer.Discount.Id });
}
}
if (gatewaySubscriptionId != null)
{
var gatewaySubscription = await _stripeAdapter.SubscriptionGetAsync(gatewaySubscriptionId);
if (gatewaySubscription?.Discount != null)