This commit is contained in:
2019-08-01 22:30:12 -05:00
parent b09f48ccdc
commit 7a2701d72d
7 changed files with 19 additions and 13 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ use Carbon\Carbon;
use DB;
//Jobs
use App\Jobs\SendEveMailJob;
use App\Jobs\ProcessSendEveMailJob;
//Library
use Commands\Library\CommandHelper;
@@ -107,7 +107,7 @@ class MoonMailerCommand extends Command
$mail->body = $body;
$mail->recipient = (int)$contact->Contact;
$mail->recipient_type = 'character';
SendEveMailJob::dispatch($mail)->onQueue('mail')->delay($delay);
ProcessSendEveMailJob::dispatch($mail)->onQueue('mail')->delay($delay);
//Increment the delay for the mail to not hit rate limits
$delay += 30;