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 = parent::validated();
|
||||||
$response['daemonListen'] = $response['daemon_listen'];
|
$response['daemonListen'] = $response['daemon_listen'];
|
||||||
$response['daemonSFTP'] = $response['daemon_sftp'];
|
$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']);
|
unset($response['daemon_base'], $response['daemon_listen'], $response['daemon_sftp']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue