From acb55a1ecb5891a34c6784f32f8d8dc14f39d492 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 10 May 2020 22:32:03 -0500 Subject: [PATCH] update --- app/Console/Commands/Moons/RentalMoonCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Console/Commands/Moons/RentalMoonCommand.php b/app/Console/Commands/Moons/RentalMoonCommand.php index 6599bc6bd..6ee47a85c 100644 --- a/app/Console/Commands/Moons/RentalMoonCommand.php +++ b/app/Console/Commands/Moons/RentalMoonCommand.php @@ -63,6 +63,9 @@ class RentalMoonCommand extends Command foreach($contacts as $contact) { MoonRentalInvoiceCreate::dispatch($contact, $delay)->onQueue('moons'); + + //Increase the delay after each job to prevent mails from backing up later down the queue + $delay += 20; } //Set the job as completed