Explorar o código

Update InstagramImportPipeline

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
a9e4589e36
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      app/Jobs/ImportPipeline/ImportInstagram.php

+ 8 - 1
app/Jobs/ImportPipeline/ImportInstagram.php

@@ -25,7 +25,14 @@ class ImportInstagram implements ShouldQueue
     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
     
     protected $job;
-
+    
+    /**
+     * Delete the job if its models no longer exist.
+     *
+     * @var bool
+     */
+    public $deleteWhenMissingModels = true;
+    
     /**
      * Create a new job instance.
      *