Update NodesNew report
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 40s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m37s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s

This commit is contained in:
2024-12-08 18:45:29 +11:00
parent ec139b79a2
commit f4ee2e1a51
3 changed files with 7 additions and 3 deletions

View File

@@ -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()) {