Merge pull request #2879 from pterodactyl/fix/backups-failing-early

Allow changing the prune age for backups
This commit is contained in:
Dane Everitt 2020-12-24 09:12:59 -08:00 committed by GitHub
commit 2f17e75395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 6 deletions

View file

@ -52,7 +52,7 @@ class BackupRemoteUploadController extends Controller
public function __invoke(Request $request, string $backup)
{
// Get the size query parameter.
$size = (int)$request->query('size');
$size = (int) $request->query('size');
if (empty($size)) {
throw new BadRequestHttpException('A non-empty "size" query parameter must be provided.');
}