Skip to content

Commit b16d152

Browse files
authored
Merge pull request pterodactyl#1934 from Sir3lit/uuidfix
Fixed UUID on node creation
2 parents b95ec0c + 93a62ac commit b16d152

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Services/Nodes/NodeCreationService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Pterodactyl\Services\Nodes;
44

5+
use Ramsey\Uuid\Uuid;
56
use Illuminate\Support\Str;
67
use Pterodactyl\Models\Node;
78
use Illuminate\Encryption\Encrypter;
@@ -41,6 +42,7 @@ public function __construct(Encrypter $encrypter, NodeRepositoryInterface $repos
4142
*/
4243
public function handle(array $data)
4344
{
45+
$data['uuid'] = Uuid::uuid4()->toString();
4446
$data['daemon_token'] = $this->encrypter->encrypt(Str::random(Node::DAEMON_TOKEN_LENGTH));
4547
$data['daemon_token_id'] = Str::random(Node::DAEMON_TOKEN_ID_LENGTH);
4648

0 commit comments

Comments
 (0)