Correctly mark server as installed

This commit is contained in:
Dane Everitt 2020-01-19 14:08:28 -08:00
parent b2cce9195a
commit 11c430cf69
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -62,8 +62,8 @@ class ServerInstallController extends Controller
$server = $this->repository->getByUuid($uuid); $server = $this->repository->getByUuid($uuid);
$this->repository->update($server->id, [ $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); return JsonResponse::create([], Response::HTTP_NO_CONTENT);
} }