Ignore disabled components when determining if a subscription is 'global'
This commit is contained in:
@@ -36,7 +36,7 @@ class UpdateSubscriberSubscriptionCommandHandler
|
||||
$subscriber = $command->subscriber;
|
||||
$subscriptions = $command->subscriptions ?: [];
|
||||
|
||||
$components = Component::all();
|
||||
$components = Component::enabled()->get();
|
||||
|
||||
$updateSubscriptions = $components->filter(function ($item) use ($subscriptions) {
|
||||
return in_array($item->id, $subscriptions);
|
||||
|
||||
Reference in New Issue
Block a user