Change our_nodes() to include only active zones/domains also. Updates to heartbeat
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 39s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m35s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
2024-12-09 12:03:38 +11:00
parent ae44732848
commit aa55d05ccb
3 changed files with 9 additions and 34 deletions

View File

@@ -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();
}