mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-28 05:44:45 +02:00
Correctly mark server as installed
This commit is contained in:
parent
b2cce9195a
commit
11c430cf69
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user