feat: show install command on machine creation

This commit is contained in:
xboard
2026-04-17 06:47:05 +08:00
parent e297b5fe9f
commit a74cc2f19d
4 changed files with 7 additions and 6 deletions
@@ -17,7 +17,7 @@ class ManageController extends Controller
public function getNodes(Request $request)
{
$servers = ServerService::getAllServers()->map(function ($item) {
$item['groups'] = ServerGroup::whereIn('id', $item['group_ids'])->get(['name', 'id']);
$item['groups'] = ServerGroup::whereIn('id', $item['group_ids'] ?? [])->get(['name', 'id']);
$item['parent'] = $item->parent;
return $item;
});