Skip to content

Commit bc25468

Browse files
authored
server: fix build modification not being persisted (pterodactyl#3610)
1 parent dbb061d commit bc25468

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/Services/Servers/BuildModificationService.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ public function __construct(
5656
*/
5757
public function handle(Server $server, array $data)
5858
{
59-
$this->connection->beginTransaction();
60-
6159
/** @var \Pterodactyl\Models\Server $server */
6260
$server = $this->connection->transaction(function() use ($server, $data) {
6361
$this->processAllocations($server, $data);
@@ -87,7 +85,7 @@ public function handle(Server $server, array $data)
8785

8886
// Because Wings always fetches an updated configuration from the Panel when booting
8987
// a server this type of exception can be safely "ignored" and just written to the logs.
90-
// Ideally this request succeedes so we can apply resource modifications on the fly, but
88+
// Ideally this request succeeds, so we can apply resource modifications on the fly, but
9189
// if it fails we can just continue on as normal.
9290
if (!empty($updateData['build'])) {
9391
try {

0 commit comments

Comments
 (0)