Przeglądaj źródła

Update InstagramImportPipeline

Daniel Supernault 6 lat temu
rodzic
commit
a9e4589e36
1 zmienionych plików z 8 dodań i 1 usunięć
  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;
     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
     
     
     protected $job;
     protected $job;
-
+    
+    /**
+     * Delete the job if its models no longer exist.
+     *
+     * @var bool
+     */
+    public $deleteWhenMissingModels = true;
+    
     /**
     /**
      * Create a new job instance.
      * Create a new job instance.
      *
      *