diff --git a/config/statamic-peak-seo.php b/config/statamic-peak-seo.php index b224b71..b185ca5 100644 --- a/config/statamic-peak-seo.php +++ b/config/statamic-peak-seo.php @@ -2,8 +2,6 @@ return [ 'social_image' => [ - 'tries' => env('SOCIAL_IMAGE_TRIES', 3), - 'release_after' => env('SOCIAL_IMAGE_RELEASE_AFTER', 5), 'node_binary' => env('SOCIAL_IMAGE_NODE_BINARY'), 'npm_binary' => env('SOCIAL_IMAGE_NPM_BINARY'), 'queue_name' => env('SOCIAL_IMAGE_QUEUE_NAME', 'default') diff --git a/src/Jobs/GenerateSocialImagesJob.php b/src/Jobs/GenerateSocialImagesJob.php index 9d5b06e..009f5e0 100644 --- a/src/Jobs/GenerateSocialImagesJob.php +++ b/src/Jobs/GenerateSocialImagesJob.php @@ -18,7 +18,6 @@ class GenerateSocialImagesJob implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; public $item; - public $tries; /** * Create a new job instance. @@ -27,20 +26,8 @@ class GenerateSocialImagesJob implements ShouldQueue { */ public function __construct($item) { $this->item = $item; - $this->tries = config('statamic-peak-seo.social_image.tries'); } - /** - * Middleware to prevent jobs from overlapping. - * - * @return void - */ - public function middleware(): array { - return [(new WithoutOverlapping('generate-social-images'))->releaseAfter(config('statamic-peak-seo.social_image.release_after'))]; - } - - // Either remove it, or - /** * Execute the job. *