1
0
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:
Kyle Spearrin 2017-12-22 23:01:56 -05:00
parent 3425e95bf6
commit ff1b85505d
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);