This commit is contained in:
@@ -50,9 +50,14 @@ class BYDAutoCommand extends Command
|
||||
$items = Testdrive::query()
|
||||
->whereNotNull('source')
|
||||
->where('status', Testdrive::STATUS_DRAFT)
|
||||
->orderBy('id')
|
||||
->get();
|
||||
|
||||
$contacts = Contact::query()
|
||||
->where('status', Contact::STATUS_PUBLISHED)
|
||||
->orderBy('id')
|
||||
->get();
|
||||
|
||||
$contacts = Contact::query()->where('status', Contact::STATUS_PUBLISHED)->get();
|
||||
$count = $contacts->count();
|
||||
$offset = cache()->get('push2contact:offset', 0);
|
||||
foreach ($items as $item) {
|
||||
|
||||
Reference in New Issue
Block a user