diff --git a/app/Repositories/Daemon/DaemonServerRepository.php b/app/Repositories/Daemon/DaemonServerRepository.php index 1c2dc1ab2..19a0d2ec2 100644 --- a/app/Repositories/Daemon/DaemonServerRepository.php +++ b/app/Repositories/Daemon/DaemonServerRepository.php @@ -40,11 +40,9 @@ class DaemonServerRepository extends DaemonRepository Assert::isInstanceOf($this->server, Server::class); try { - $this->getHttpClient()->post('/api/servers', [ - 'json' => [ - 'uuid' => $this->server->uuid, - 'start_on_completion' => $startOnCompletion, - ], + $response = $this->getHttpClient()->post('/api/servers', [ + 'uuid' => $this->server->uuid, + 'start_on_completion' => $startOnCompletion, ]); } catch (GuzzleException $exception) { throw new DaemonConnectionException($exception);