mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
Fix bug preventing rendering of database hosts when not linked to a node.
This commit is contained in:
parent
e0696900bb
commit
61e65294af
@ -62,7 +62,7 @@ class DatabaseController extends Controller
|
||||
'database_servers.*',
|
||||
'nodes.name as a_linkedNode',
|
||||
DB::raw('(SELECT COUNT(*) FROM `databases` WHERE `databases`.`db_server` = database_servers.id) as c_databases')
|
||||
)->join('nodes', 'nodes.id', '=', 'database_servers.linked_node')
|
||||
)->leftJoin('nodes', 'nodes.id', '=', 'database_servers.linked_node')
|
||||
->paginate(20)
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user