Merge pull request #3072 from pterodactyl/matthewpi/fix-server-installs

api(remote): fix inproper reading of boolean for installation status
This commit is contained in:
Dane Everitt 2021-02-08 10:04:45 -08:00 committed by GitHub
commit 9af1b9c3ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ class ServerInstallController extends Controller
{
$server = $this->repository->getByUuid($uuid);
$status = $request->input('successful') === '1' ? null : Server::STATUS_INSTALL_FAILED;
$status = $request->boolean('successful') ? null : Server::STATUS_INSTALL_FAILED;
if ($server->status === Server::STATUS_SUSPENDED) {
$status = Server::STATUS_SUSPENDED;
}