moon rental fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user