From 1880b83944f41304407006135f25a3a35f0c4f06 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 12 Sep 2021 15:27:02 -0600 Subject: [PATCH] server: fix build modification not being persisted --- app/Services/Servers/BuildModificationService.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Services/Servers/BuildModificationService.php b/app/Services/Servers/BuildModificationService.php index 86658c6e..66eb5223 100644 --- a/app/Services/Servers/BuildModificationService.php +++ b/app/Services/Servers/BuildModificationService.php @@ -56,8 +56,6 @@ class BuildModificationService */ public function handle(Server $server, array $data) { - $this->connection->beginTransaction(); - /** @var \Pterodactyl\Models\Server $server */ $server = $this->connection->transaction(function() use ($server, $data) { $this->processAllocations($server, $data); @@ -87,7 +85,7 @@ class BuildModificationService // Because Wings always fetches an updated configuration from the Panel when booting // a server this type of exception can be safely "ignored" and just written to the logs. - // Ideally this request succeedes so we can apply resource modifications on the fly, but + // Ideally this request succeeds, so we can apply resource modifications on the fly, but // if it fails we can just continue on as normal. if (!empty($updateData['build'])) { try {