浏览代码

Update InstagramImportPipeline

Daniel Supernault 6 年之前
父节点
当前提交
a9e4589e36
共有 1 个文件被更改,包括 8 次插入1 次删除
  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.
      *