diff --git a/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php b/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php index 986f08c2d..817659b32 100644 --- a/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php +++ b/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php @@ -42,13 +42,6 @@ class ProcessSendEveMailJob implements ShouldQueue */ //public $retries = 3; - /** - * Middleware for the job - * - * @var \Spatie\RateLimitedMiddleware\RateLimited - */ - private $middleware; - private $sender; private $body; private $recipient; @@ -60,16 +53,21 @@ class ProcessSendEveMailJob implements ShouldQueue * * @return void */ - public function __construct($body, $recipient, $recipient_type, $subject, $sender) { + public function __construct($body, $recipient, $recipient_type, $subject, $sender) { //Set the connection $this->connection = 'redis'; + //Set the middleware for the job + $this->middleware = $this->middleware(); + //Private variables $this->body = $body; $this->recipient = $recipient; $this->recipient_type = $recipient_type; $this->subject = $subject; $this->sender = $sender; + + } /**