Need to include pkg_msgs when lazyloading relations
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 1m47s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-06-27 10:06:11 +10:00
parent df07d9978e
commit dcf34d9be2

View File

@ -209,7 +209,7 @@ class Address extends Model
$o = $query
->where('region_id',$ftn['n'])
->where('host_id',$ftn['n'])
->with(['system:id,active,name,address'])
->with(['system:id,active,name,address,pkt_msgs'])
->first();
// Look for a normal address
@ -224,7 +224,7 @@ class Address extends Model
})
->orWhere('host_id',$ftn['n']);
})
->with(['system:id,active,name,address'])
->with(['system:id,active,name,address,pkt_msgs'])
->first();
// Check and see if we are a flattened domain, our address might be available with a different zone.