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