mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
cancel on delete
This commit is contained in:
@@ -205,10 +205,9 @@ namespace Bit.Core.Services
|
||||
|
||||
if(!string.IsNullOrWhiteSpace(user.GatewaySubscriptionId))
|
||||
{
|
||||
var paymentService = user.GetPaymentService(_globalSettings);
|
||||
try
|
||||
{
|
||||
await paymentService.CancelSubscriptionAsync(user, true);
|
||||
await CancelPremiumAsync(user);
|
||||
}
|
||||
catch(GatewayException) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user