From 50840eaa90f93fb5e423ef589eeccc8ee60cd003 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 31 May 2019 22:08:38 -0500 Subject: [PATCH] moon mailer --- app/Console/Commands/moonmailer.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/Console/Commands/moonmailer.php b/app/Console/Commands/moonmailer.php index c88b953c3..c4b368ae2 100644 --- a/app/Console/Commands/moonmailer.php +++ b/app/Console/Commands/moonmailer.php @@ -95,7 +95,7 @@ class MoonMailerCommand extends Command $body .= "Please remit payment to Spatial Forces on the 1st should you continue to wish to rent the moon.
"; $body .= "Sincerely,
"; $body .= "Warped Intentions Leadership
"; - /* + //Dispatch the mail job $mail = new EveMail; $mail->sender = 93738489; @@ -107,17 +107,14 @@ class MoonMailerCommand extends Command //After the mail is dispatched, saved the sent mail record $this->SaveSentRecord($mail->sender, $mail->subject, $mail->body, $mail->recipient, $mail->recipient_type); - */ + //Update the moon as not being paid for the next month? foreach($rentals as $rental) { $previous = new Carbon($rental->Paid_Until); if($today->greaterThan($previous)) { - //$this->UpdateNotPaid($rental); - printf("Updating Moon Rental"); - var_dump($rental); - printf("\n"); + $this->UpdateNotPaid($rental); } }