Skip to content

Commit 352910f

Browse files
committed
api(remote): fix inproper reading of boolean for installation status
1 parent 00da092 commit 352910f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function store(InstallationDataRequest $request, string $uuid)
5656
{
5757
$server = $this->repository->getByUuid($uuid);
5858

59-
$status = $request->input('successful') === '1' ? null : Server::STATUS_INSTALL_FAILED;
59+
$status = $request->boolean('successful') ? null : Server::STATUS_INSTALL_FAILED;
6060
if ($server->status === Server::STATUS_SUSPENDED) {
6161
$status = Server::STATUS_SUSPENDED;
6262
}

0 commit comments

Comments
 (0)