From 2ad9b01044d66d7180d04be7d11b88f9b2455912 Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Sun, 28 Nov 2021 21:53:23 +0100 Subject: [PATCH] Fixed: Delete processed ResizeJob --- classes/ResizeJob.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/classes/ResizeJob.php b/classes/ResizeJob.php index 38bfd09..b3d37e7 100644 --- a/classes/ResizeJob.php +++ b/classes/ResizeJob.php @@ -11,13 +11,9 @@ class ResizeJob public function fire($job, $params) { - try { - list($file) = $params; - app(ImageResizer::class)->generate(new MediaPath($file), $params['update'] ?? false); - } catch (Throwable $e) { - Log::error('Resizing of image failed. Message: "'.$e->getMessage().'" in file "'.$e->getFile().'" on line '.$e->getLine()); - throw $e; - } + list($file) = $params; + app(ImageResizer::class)->generate(new MediaPath($file), $params['update'] ?? false); + $job->delete(); } public function failed($data, Throwable $e)