From 11c430cf69d446b876ac03076c3eb846daa99a92 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 19 Jan 2020 14:08:28 -0800 Subject: [PATCH] Correctly mark server as installed --- .../Api/Remote/Servers/ServerInstallController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php b/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php index db89811b9..530832d4e 100644 --- a/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php +++ b/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php @@ -62,8 +62,8 @@ class ServerInstallController extends Controller $server = $this->repository->getByUuid($uuid); $this->repository->update($server->id, [ - 'installed' => ((bool) $request->input('successful', false)) ? 1 : 2, - ]); + 'installed' => (string) $request->input('successful') === '1' ? 1 : 2, + ], true, true); return JsonResponse::create([], Response::HTTP_NO_CONTENT); }