|
|
|
@ -40,10 +40,15 @@ public class SubscriptionDeletedHandler : ISubscriptionDeletedHandler |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (organizationId.HasValue && |
|
|
|
if (organizationId.HasValue) |
|
|
|
subscription.CancellationDetails.Comment != providerMigrationCancellationComment && |
|
|
|
|
|
|
|
!subscription.CancellationDetails.Comment.Contains(addedToProviderCancellationComment)) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(subscription.CancellationDetails?.Comment) && |
|
|
|
|
|
|
|
(subscription.CancellationDetails.Comment == providerMigrationCancellationComment || |
|
|
|
|
|
|
|
subscription.CancellationDetails.Comment.Contains(addedToProviderCancellationComment))) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
await _organizationService.DisableAsync(organizationId.Value, subscription.CurrentPeriodEnd); |
|
|
|
await _organizationService.DisableAsync(organizationId.Value, subscription.CurrentPeriodEnd); |
|
|
|
} |
|
|
|
} |
|
|
|
else if (userId.HasValue) |
|
|
|
else if (userId.HasValue) |
|
|
|
|