Fixes for address idle, to properly catch when role is NULL
This commit is contained in:
parent
e50eda58e0
commit
6430be0167
@ -228,7 +228,7 @@ class AddressIdle implements ShouldQueue
|
|||||||
->when($ao,fn($query)=>$query->where('addresses.id',$ao->id))
|
->when($ao,fn($query)=>$query->where('addresses.id',$ao->id))
|
||||||
->where(fn($q)=>$q->where('last_session','<',$age)->orWhereNull('last_session'))
|
->where(fn($q)=>$q->where('last_session','<',$age)->orWhereNull('last_session'))
|
||||||
->whereRaw(sprintf('((role IS NULL) OR (role=0) OR ((role & %d) > 0))',$flags))
|
->whereRaw(sprintf('((role IS NULL) OR (role=0) OR ((role & %d) > 0))',$flags))
|
||||||
->whereRaw(sprintf('((role & %d) = 0)',Address::NODE_KEEP))
|
->whereRaw(sprintf('((role IS NULL) OR ((role & %d) = 0))',Address::NODE_KEEP))
|
||||||
->join('systems',['systems.id'=>'addresses.system_id'])
|
->join('systems',['systems.id'=>'addresses.system_id'])
|
||||||
->ftnOrder()
|
->ftnOrder()
|
||||||
->with(['system','zone.domain'])
|
->with(['system','zone.domain'])
|
||||||
|
Loading…
Reference in New Issue
Block a user