Allow changing the prune age for backups

This commit is contained in:
Matthew Penner 2020-12-16 14:15:07 -07:00
parent 5bbb36b3cf
commit e34d31a58c
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.');
}