mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Fix stripe subscription update
This commit is contained in:
@ -137,7 +137,7 @@ namespace Bit.Core.Models.Business
|
||||
public override List<SubscriptionItemOptions> RevertItemsOptions(Subscription subscription)
|
||||
{
|
||||
var result = new List<SubscriptionItemOptions>();
|
||||
if (AddStripeItem(subscription) != null)
|
||||
if (!string.IsNullOrWhiteSpace(AddStripePlanId))
|
||||
{
|
||||
result.Add(new SubscriptionItemOptions
|
||||
{
|
||||
@ -148,7 +148,7 @@ namespace Bit.Core.Models.Business
|
||||
});
|
||||
}
|
||||
|
||||
if (RemoveStripeItem(subscription) != null)
|
||||
if (!string.IsNullOrWhiteSpace(RemoveStripePlanId))
|
||||
{
|
||||
result.Add(new SubscriptionItemOptions
|
||||
{
|
||||
@ -175,7 +175,7 @@ namespace Bit.Core.Models.Business
|
||||
});
|
||||
}
|
||||
|
||||
if (AddStripeItem(subscription) != null)
|
||||
if (!string.IsNullOrWhiteSpace(AddStripePlanId))
|
||||
{
|
||||
result.Add(new SubscriptionItemOptions
|
||||
{
|
||||
|
Reference in New Issue
Block a user