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 {
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();
} catch (TransferException $exception) {
throw new DaemonConnectionException($exception);