diff --git a/app/Console/Commands/moonmailer.php b/app/Console/Commands/moonmailer.php index 1d2d3b390..d93f6de73 100644 --- a/app/Console/Commands/moonmailer.php +++ b/app/Console/Commands/moonmailer.php @@ -110,8 +110,11 @@ class MoonMailerCommand extends Command //Update the moon as not being paid for the next month? foreach($rentals as $rental) { - if($today > $rental->Paid_Until) - $this->UpdateNotPaid($rental); + $previous = new Carbon($rental->Paid_Until); + + if($today->greaterThan($previous)) { + $this->UpdateNotPaid($rental); + } } */