Correctly mark server as installed
This commit is contained in:
parent
b2cce9195a
commit
11c430cf69
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue