mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 09:32:48 -05:00
fix cancelled typo in areas
This commit is contained in:
@ -164,8 +164,8 @@ namespace Bit.Core.Services
|
||||
if(sub != null)
|
||||
{
|
||||
var cancelAtEndDate = !sub.NeverExpires.GetValueOrDefault();
|
||||
var cancelled = sub.Status == SubscriptionStatus.CANCELED;
|
||||
if(!cancelled && !cancelAtEndDate && sub.NextBillingDate.HasValue)
|
||||
var canceled = sub.Status == SubscriptionStatus.CANCELED;
|
||||
if(!canceled && !cancelAtEndDate && sub.NextBillingDate.HasValue)
|
||||
{
|
||||
return new BillingInfo.BillingInvoice(sub);
|
||||
}
|
||||
|
@ -193,9 +193,9 @@ namespace Bit.Core.Services
|
||||
throw new GatewayException("Subscription was not found.");
|
||||
}
|
||||
|
||||
if(sub.CanceledAt.HasValue || sub.Status == "cancelled")
|
||||
if(sub.CanceledAt.HasValue || sub.Status == "canceled" || sub.Status == "unpaid")
|
||||
{
|
||||
// Already cancelled
|
||||
// Already canceled
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user