From 7e16e9d43f52f1ebef18f659bf5bcb7321ca4923 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 12 Jan 2019 15:17:28 -0700 Subject: [PATCH] Update MentionPipeline --- app/Jobs/MentionPipeline/MentionPipeline.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Jobs/MentionPipeline/MentionPipeline.php b/app/Jobs/MentionPipeline/MentionPipeline.php index 8029e231..e75ede04 100644 --- a/app/Jobs/MentionPipeline/MentionPipeline.php +++ b/app/Jobs/MentionPipeline/MentionPipeline.php @@ -18,6 +18,13 @@ class MentionPipeline implements ShouldQueue protected $status; protected $mention; + /** + * Delete the job if its models no longer exist. + * + * @var bool + */ + public $deleteWhenMissingModels = true; + /** * Create a new job instance. *