Select less data from servers
This commit is contained in:
parent
0acc260b81
commit
02e4c1424e
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class NodeRepository extends EloquentRepository implements NodeRepositoryInterfa
|
|||
public function loadNodeAllocations(Node $node, bool $refresh = false): Node
|
||||
{
|
||||
$node->setRelation('allocations',
|
||||
$node->allocations()->orderByRaw('server_id IS NOT NULL DESC, server_id IS NULL')->orderByRaw('INET_ATON(ip) ASC')->orderBy('port', 'asc')->with('server')->paginate(50)
|
||||
$node->allocations()->orderByRaw('server_id IS NOT NULL DESC, server_id IS NULL')->orderByRaw('INET_ATON(ip) ASC')->orderBy('port', 'asc')->with('server:id,name')->paginate(50)
|
||||
);
|
||||
|
||||
return $node;
|
||||
|
|
Loading…
Reference in a new issue