Don't need json key anymore

This commit is contained in:
Lance Pioch 2022-10-21 17:31:52 -04:00
parent 264df1876b
commit 57288ff6c8

View file

@ -393,7 +393,7 @@ class Server extends Model
{ {
try { try {
return Http::daemon($this->node)->post("/api/servers/{$this->uuid}/commands", [ return Http::daemon($this->node)->post("/api/servers/{$this->uuid}/commands", [
'json' => ['commands' => is_array($command) ? $command : [$command]], 'commands' => is_array($command) ? $command : [$command],
])->toPsrResponse(); ])->toPsrResponse();
} catch (TransferException $exception) { } catch (TransferException $exception) {
throw new DaemonConnectionException($exception); throw new DaemonConnectionException($exception);