Skip to content

Commit 11c430c

Browse files
committed
Correctly mark server as installed
1 parent b2cce91 commit 11c430c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public function store(InstallationDataRequest $request, string $uuid)
6262
$server = $this->repository->getByUuid($uuid);
6363

6464
$this->repository->update($server->id, [
65-
'installed' => ((bool) $request->input('successful', false)) ? 1 : 2,
66-
]);
65+
'installed' => (string) $request->input('successful') === '1' ? 1 : 2,
66+
], true, true);
6767

6868
return JsonResponse::create([], Response::HTTP_NO_CONTENT);
6969
}

0 commit comments

Comments
 (0)