Update NodesNew report
This commit is contained in:
@@ -11,7 +11,7 @@ use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
|
||||
use App\Models\{Address, Domain, System};
|
||||
use App\Models\{Address,Domain};
|
||||
use App\Notifications\Netmails\NodesNew as NotificationNodesNew;
|
||||
|
||||
class NodesNew implements ShouldQueue
|
||||
@@ -43,11 +43,13 @@ class NodesNew implements ShouldQueue
|
||||
|
||||
$result = Address::FTN()
|
||||
->ActiveFTN()
|
||||
->addSelect('addresses.created_at')
|
||||
->join('systems',['systems.id'=>'addresses.system_id'])
|
||||
->join('system_zone',['system_zone.system_id'=>'systems.id','system_zone.zone_id'=>'zones.id'])
|
||||
->whereIn('zones.id',$this->do->zones->pluck('id'))
|
||||
->where('systems.active',TRUE)
|
||||
->where('systems.created_at','>=',$since)
|
||||
->orderBy('addresses.created_at')
|
||||
->get();
|
||||
|
||||
if ($result->count()) {
|
||||
|
Reference in New Issue
Block a user