From d3a2252c9570226981f82f75bbe4b4279a303be9 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 2 Apr 2019 15:06:23 -0500 Subject: [PATCH] moon rental fix --- app/Console/Commands/moonmailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/moonmailer.php b/app/Console/Commands/moonmailer.php index 848146569..91e348cfb 100644 --- a/app/Console/Commands/moonmailer.php +++ b/app/Console/Commands/moonmailer.php @@ -120,7 +120,7 @@ class MoonMailerCommand extends Command $sentmail->save(); //After saving the record, delete the record from the database - if($today->equalTo($rental->RentalEnd)) { + if($today->greaterThanOrEqualTo($rental->RentalEnd)) { MoonRent::where(['id' => $rental->id])->delete(); }