Clean this code up, just use the updated model's FQDN; references #1931

This commit is contained in:
Dane Everitt 2020-05-09 16:26:37 -07:00
parent 33a7762152
commit 52966ede89
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -86,9 +86,7 @@ class NodeUpdateService
// node doesn't actually care about this.
//
// @see https://github.com/pterodactyl/panel/issues/1931
if (! empty($data['fqdn'])) {
$node->fqdn = $data['fqdn'];
}
$node->fqdn = $updated->fqdn;
$this->configurationRepository->setNode($node)->update($updated);
} catch (DaemonConnectionException $exception) {