Update app/Repositories/Daemon/DaemonFileRepository.php

This commit is contained in:
Lance Pioch 2024-04-19 00:33:42 -04:00 committed by GitHub
parent c0b1345e90
commit ad372a754e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,9 +56,7 @@ class DaemonFileRepository extends DaemonRepository
return $this->getHttpClient() return $this->getHttpClient()
->withQueryParameters(['file' => $path]) ->withQueryParameters(['file' => $path])
->withBody($content) ->withBody($content)
->post( ->post(sprintf('/api/servers/%s/files/write', $this->server->uuid));
sprintf('/api/servers/%s/files/write', $this->server->uuid)
);
} catch (TransferException $exception) { } catch (TransferException $exception) {
throw new DaemonConnectionException($exception); throw new DaemonConnectionException($exception);
} }