From 57288ff6c88f93a78f03594b244c23d5f1b31c0d Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Fri, 21 Oct 2022 17:31:52 -0400 Subject: [PATCH] Don't need json key anymore --- app/Models/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Server.php b/app/Models/Server.php index c173e9afb..ce376f470 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -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);