1
1
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:
Dane Everitt 2016-11-04 20:44:56 -04:00
parent e0696900bb
commit 61e65294af
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

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