mirror of
https://github.com/bitwarden/server.git
synced 2024-11-23 12:25:16 +01:00
subscriptions are always canceled at end of period
This commit is contained in:
parent
3425e95bf6
commit
ff1b85505d
@ -765,7 +765,7 @@ namespace Bit.Core.Services
|
|||||||
{
|
{
|
||||||
if(!string.IsNullOrWhiteSpace(organization.GatewaySubscriptionId))
|
if(!string.IsNullOrWhiteSpace(organization.GatewaySubscriptionId))
|
||||||
{
|
{
|
||||||
await _stripePaymentService.CancelSubscriptionAsync(organization, false);
|
await _stripePaymentService.CancelSubscriptionAsync(organization, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
await _organizationRepository.DeleteAsync(organization);
|
await _organizationRepository.DeleteAsync(organization);
|
||||||
|
@ -174,7 +174,7 @@ namespace Bit.Core.Services
|
|||||||
if(!string.IsNullOrWhiteSpace(user.GatewaySubscriptionId))
|
if(!string.IsNullOrWhiteSpace(user.GatewaySubscriptionId))
|
||||||
{
|
{
|
||||||
var paymentService = user.GetPaymentService(_globalSettings);
|
var paymentService = user.GetPaymentService(_globalSettings);
|
||||||
await paymentService.CancelSubscriptionAsync(user, false);
|
await paymentService.CancelSubscriptionAsync(user, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
await _userRepository.DeleteAsync(user);
|
await _userRepository.DeleteAsync(user);
|
||||||
|
Loading…
Reference in New Issue
Block a user