Listing setParam only needs to be run when url history is specified
- added missing code to deleteManySubscriptions() so that it doesn't remove from all segments
This commit is contained in:
@ -129,6 +129,11 @@ class SubscriberSegment extends Model {
|
||||
'segment_id', $wp_segment->id
|
||||
);
|
||||
}
|
||||
|
||||
if(!empty($segment_ids)) {
|
||||
$subscriptions = $subscriptions->whereIn('segment_id', $segment_ids);
|
||||
}
|
||||
|
||||
return $subscriptions->deleteMany();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user