NodesNew also now sends an Echomail
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
@@ -19,7 +20,9 @@ class AddressIdleDomain implements ShouldQueue
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
foreach (Domain::whereNotNull('nodestatus_id')->cursor() as $do)
|
||||
foreach (Domain::whereNotNull('nodestatus_id')->cursor() as $do) {
|
||||
AddressIdle::dispatch($do);
|
||||
NodesNew::dispatch($do,Carbon::now()->subWeek()->startOfDay());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user