Skip to content

Commit d73e5a2

Browse files
jacobgcDaneEveritt
authored andcommitted
Fixed my fix to fix the 500 error on /api/application/nodes when not specifying a daemon_base (pterodactyl#1182)
1 parent 7319ef1 commit d73e5a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Requests/Api/Application/Nodes/StoreNodeRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function validated()
7474
$response = parent::validated();
7575
$response['daemonListen'] = $response['daemon_listen'];
7676
$response['daemonSFTP'] = $response['daemon_sftp'];
77-
$response['daemonBase'] = $response['daemon_base'];
77+
$response['daemonBase'] = $response['daemon_base'] ?? (new Node)->getAttribute('daemonBase');
7878

7979
unset($response['daemon_base'], $response['daemon_listen'], $response['daemon_sftp']);
8080

0 commit comments

Comments
 (0)