Skip to content

Commit 52966ed

Browse files
committed
Clean this code up, just use the updated model's FQDN; references pterodactyl#1931
1 parent 33a7762 commit 52966ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/Services/Nodes/NodeUpdateService.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ public function handle(Node $node, array $data, bool $resetToken = false)
8686
// node doesn't actually care about this.
8787
//
8888
// @see https://github.com/pterodactyl/panel/issues/1931
89-
if (! empty($data['fqdn'])) {
90-
$node->fqdn = $data['fqdn'];
91-
}
89+
$node->fqdn = $updated->fqdn;
9290

9391
$this->configurationRepository->setNode($node)->update($updated);
9492
} catch (DaemonConnectionException $exception) {

0 commit comments

Comments
 (0)