From f70e8ded6f02dfede8ebe9d63e3484b12e98e248 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 3 Jan 2020 17:17:24 -0600 Subject: [PATCH] moon mailer modification --- app/Console/Commands/Moons/MoonMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/Moons/MoonMailer.php b/app/Console/Commands/Moons/MoonMailer.php index 626d2a472..d19a17524 100644 --- a/app/Console/Commands/Moons/MoonMailer.php +++ b/app/Console/Commands/Moons/MoonMailer.php @@ -82,7 +82,7 @@ class MoonMailerCommand extends Command //then update parameters of the moon foreach($contacts as $contact) { //Get the moons the renter is renting. Also only get the moons which are not paid as of today - $rentals = MoonRental::where(['Contact' => $contact->Contact])->andWhere($today, '>', 'Paid_Until')->get(); + $rentals = MoonRental::where(['Contact' => $contact->Contact])->get(); //Totalize the cost of the moons $cost = $this->TotalizeMoonCost($rentals);