Clean this code up, just use the updated model's FQDN; references #1931
This commit is contained in:
parent
33a7762152
commit
52966ede89
1 changed files with 1 additions and 3 deletions
|
@ -86,9 +86,7 @@ class NodeUpdateService
|
||||||
// node doesn't actually care about this.
|
// node doesn't actually care about this.
|
||||||
//
|
//
|
||||||
// @see https://github.com/pterodactyl/panel/issues/1931
|
// @see https://github.com/pterodactyl/panel/issues/1931
|
||||||
if (! empty($data['fqdn'])) {
|
$node->fqdn = $updated->fqdn;
|
||||||
$node->fqdn = $data['fqdn'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->configurationRepository->setNode($node)->update($updated);
|
$this->configurationRepository->setNode($node)->update($updated);
|
||||||
} catch (DaemonConnectionException $exception) {
|
} catch (DaemonConnectionException $exception) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue