Jake Vanderwerf
2026-09-18 a6413da67a4579866f0fd0323ddb23a7b6b9654a
inc/managers/queue/executors/UploadExecutor.php
@@ -2,6 +2,7 @@
namespace JVBase\managers\queue\executors;
use JVBase\managers\queue\{Executor, Operation, Progress, Queue, Result};
use JVBase\inc\managers\ErrorHelper;
use JVBase\managers\Cache;
use JVBase\managers\Errors;
use JVBase\managers\UploadManager;
@@ -21,6 +22,7 @@
 */
final class UploadExecutor implements Executor
{
   use ErrorHelper;
   private const HANDLED_TYPES = [
      'image_upload',
      'video_upload',
@@ -58,15 +60,11 @@
         };
      } catch (Exception $e) {
         Errors::getInstance()->log(
            '[UploadExecutor]:execute',
            $e->getMessage(),
            [
               'operation_id'   => $operation->id,
               'operation_type' => $operation->type,
               'user_id'        => $operation->userId,
            ]
         );
         $this->logError($e->getMessage(), 'execute', [
            'operation_id'   => $operation->id,
            'operation_type' => $operation->type,
            'user_id'        => $operation->userId,
         ]);
         return new Result(
            outcome: 'failed',