Add hold when populating address with system data
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 36s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m51s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-10-21 08:40:47 +11:00
parent d2d2f31664
commit 6bba18fc5f

View File

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