mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 06:54:36 -04:00
Updates for cache::pull
This commit is contained in:
parent
66452a9f2a
commit
f9a7c582b7
@ -21,7 +21,7 @@ class ProtectedDownloadController extends BaseController
|
|||||||
public function index(Request $request, string $hash)
|
public function index(Request $request, string $hash)
|
||||||
{
|
{
|
||||||
/** @var string $hashed_path */
|
/** @var string $hashed_path */
|
||||||
$hashed_path = Cache::pull($hash);
|
$hashed_path = Cache::get($hash);
|
||||||
|
|
||||||
if (!$hashed_path) {
|
if (!$hashed_path) {
|
||||||
throw new SystemError('File no longer available', 404);
|
throw new SystemError('File no longer available', 404);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user