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)