1
0
mirror of https://github.com/bitwarden/server synced 2025-12-14 23:33:41 +00:00

catch gateway exception when canceling on delete

This commit is contained in:
Kyle Spearrin
2018-09-07 14:00:56 -04:00
parent fceef7133e
commit fb45f75bc8
2 changed files with 10 additions and 2 deletions

View File

@@ -770,7 +770,11 @@ namespace Bit.Core.Services
{
if(!string.IsNullOrWhiteSpace(organization.GatewaySubscriptionId))
{
await _stripePaymentService.CancelSubscriptionAsync(organization, true);
try
{
await _stripePaymentService.CancelSubscriptionAsync(organization, true);
}
catch(GatewayException) { }
}
await _organizationRepository.DeleteAsync(organization);