mirror of
https://github.com/bitwarden/server.git
synced 2026-02-06 09:03:21 +08: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