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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user