diff --git a/packages/bydauto/src/Commands/BYDAutoCommand.php b/packages/bydauto/src/Commands/BYDAutoCommand.php index 7c90c84..6ce6d6a 100644 --- a/packages/bydauto/src/Commands/BYDAutoCommand.php +++ b/packages/bydauto/src/Commands/BYDAutoCommand.php @@ -50,9 +50,14 @@ public function action_push2contact() $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) {