moon rental fix

This commit is contained in:
2019-04-02 15:06:23 -05:00
parent deb17144da
commit d3a2252c95
+1 -1
View File
@@ -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();
}