Limit address idle only to addresses where we are the parent
This commit is contained in:
parent
1075cc0de4
commit
21d3ff5918
@ -196,6 +196,7 @@ class AddressIdle implements ShouldQueue
|
||||
return collect();
|
||||
|
||||
$age = Carbon::now()->subDays($days)->endOfDay();
|
||||
$ours = our_address($do)->pluck('ftn');
|
||||
|
||||
return Address::FTN()
|
||||
->ActiveFTN()
|
||||
@ -208,6 +209,7 @@ class AddressIdle implements ShouldQueue
|
||||
->whereRaw(sprintf('((role IS NULL) OR ((role & %d) = 0))',Address::NODE_KEEP))
|
||||
->join('systems',['systems.id'=>'addresses.system_id'])
|
||||
//->with(['system','zone.domain'])
|
||||
->get();
|
||||
->get()
|
||||
->filter(fn($item)=>$ours->contains($item->parent()?->ftn));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user