diff --git a/src/Dvlpp/Sharp/Repositories/AutoUpdater/Valuators/FileValuator.php b/src/Dvlpp/Sharp/Repositories/AutoUpdater/Valuators/FileValuator.php index f4a08a4..f905b59 100644 --- a/src/Dvlpp/Sharp/Repositories/AutoUpdater/Valuators/FileValuator.php +++ b/src/Dvlpp/Sharp/Repositories/AutoUpdater/Valuators/FileValuator.php @@ -158,7 +158,7 @@ private function moveUploadedFile() $srcFileDisk, $storageDisk, !$duplication) - )->onQueue("sharp-files") + )->onQueue($this->getFileQueueName()) ); return [ @@ -212,4 +212,15 @@ private function generateThumbnail($tmpFilePath, $thumbConfig, $relativeThumbFol sharp_thumbnail($tmpFilePath, $w, $h, [], $relativeThumbFolder, true); } + private function getFileQueueName() + { + $queueName = config("sharp.file_queue_name"); + + if(!$queueName) { + $queueName = config("sharp.name") . "_sharp-files"; + } + + return $queueName; + } + } \ No newline at end of file