mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
cancel on delete
This commit is contained in:
@@ -785,7 +785,9 @@ namespace Bit.Core.Services
|
||||
{
|
||||
try
|
||||
{
|
||||
await _stripePaymentService.CancelSubscriptionAsync(organization, true);
|
||||
var eop = !organization.ExpirationDate.HasValue ||
|
||||
organization.ExpirationDate.Value >= DateTime.UtcNow;
|
||||
await _stripePaymentService.CancelSubscriptionAsync(organization, eop);
|
||||
}
|
||||
catch(GatewayException) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user