Use dynamic segments for sending queue

[PREMIUM-38]
This commit is contained in:
Pavel Dohnal
2017-10-05 10:43:06 +01:00
parent b7555aa640
commit 0271675cd0
10 changed files with 101 additions and 17 deletions

View File

@ -261,6 +261,7 @@ class Subscriber extends Model {
$segments = Segment::orderByAsc('name')
->whereNull('deleted_at')
->whereIn('type', array(Segment::TYPE_WP_USERS, Segment::TYPE_DEFAULT))
->findMany();
$segment_list = array();
$segment_list[] = array(