Skip to content

Commit

Permalink
server: fix build modification not being persisted (#3610)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpi authored Sep 13, 2021
1 parent dbb061d commit bc25468
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Services/Servers/BuildModificationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ public function __construct(
*/
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);
Expand Down Expand Up @@ -87,7 +85,7 @@ public function handle(Server $server, array $data)

// 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 {
Expand Down

0 comments on commit bc25468

Please sign in to comment.