From 011e2c964c0e5876ffa4f19c9c31c60b7d3cf89f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 21 May 2020 20:44:13 -0600 Subject: [PATCH] Update InboxValidator --- app/Jobs/InboxPipeline/InboxValidator.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Jobs/InboxPipeline/InboxValidator.php b/app/Jobs/InboxPipeline/InboxValidator.php index 570bfe31..e38e0541 100644 --- a/app/Jobs/InboxPipeline/InboxValidator.php +++ b/app/Jobs/InboxPipeline/InboxValidator.php @@ -23,6 +23,9 @@ class InboxValidator implements ShouldQueue protected $headers; protected $payload; + public $timeout = 5; + public $tries = 1; + /** * Create a new job instance. * @@ -61,11 +64,9 @@ class InboxValidator implements ShouldQueue } if($this->verifySignature($headers, $profile, $payload) == true) { - dispatch(new \App\Jobs\InboxPipeline\InboxWorker($headers, $profile, $payload)); - return; + (new Inbox($headers, $profile, $payload))->handle() } else if($this->blindKeyRotation($headers, $profile, $payload) == true) { - dispatch(new \App\Jobs\InboxPipeline\InboxWorker($headers, $profile, $payload)); - return; + (new Inbox($headers, $profile, $payload))->handle() } else { return; }