Change our_nodes() to include only active zones/domains also. Updates to heartbeat
This commit is contained in:
@@ -77,13 +77,12 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
|
||||
public function addresses(): Collection
|
||||
{
|
||||
return Address::select('addresses.*')
|
||||
return Address::FTN()
|
||||
->join('systems',['systems.id'=>'addresses.system_id'])
|
||||
->join('system_user',['system_user.system_id'=>'systems.id'])
|
||||
->where('system_user.user_id',$this->id)
|
||||
->where('systems.active',TRUE)
|
||||
->ActiveFTN()
|
||||
->FTN()
|
||||
->get();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user