From 352910f89779c79cf59752a9439262294b0c7818 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sat, 6 Feb 2021 10:16:08 -0700 Subject: [PATCH] api(remote): fix inproper reading of boolean for installation status --- .../Controllers/Api/Remote/Servers/ServerInstallController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php b/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php index e2217adff..113b7c01e 100644 --- a/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php +++ b/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php @@ -56,7 +56,7 @@ class ServerInstallController extends Controller { $server = $this->repository->getByUuid($uuid); - $status = $request->input('successful') === '1' ? null : Server::STATUS_INSTALL_FAILED; + $status = $request->boolean('successful') ? null : Server::STATUS_INSTALL_FAILED; if ($server->status === Server::STATUS_SUSPENDED) { $status = Server::STATUS_SUSPENDED; }