Skip to content

Commit

Permalink
Ignore disabled components when determining if a subscription is 'glo…
Browse files Browse the repository at this point in the history
…bal'
  • Loading branch information
langemeijer committed May 13, 2020
1 parent c7ad51e commit 0b38e41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle(UpdateSubscriberSubscriptionCommand $command)
$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);
Expand Down

0 comments on commit 0b38e41

Please sign in to comment.