mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 01:22:30 +01:00
Fixed my fix to fix the 500 error on /api/application/nodes when not specifying a daemon_base (#1182)
This commit is contained in:
parent
7319ef1b60
commit
d73e5a2274
@ -74,7 +74,7 @@ class StoreNodeRequest extends ApplicationApiRequest
|
||||
$response = parent::validated();
|
||||
$response['daemonListen'] = $response['daemon_listen'];
|
||||
$response['daemonSFTP'] = $response['daemon_sftp'];
|
||||
$response['daemonBase'] = $response['daemon_base'];
|
||||
$response['daemonBase'] = $response['daemon_base'] ?? (new Node)->getAttribute('daemonBase');
|
||||
|
||||
unset($response['daemon_base'], $response['daemon_listen'], $response['daemon_sftp']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user