update to how moons are displayed for the admin page

This commit is contained in:
2019-04-24 00:59:37 -05:00
parent 03c3c7ac6d
commit 899db99955
4 changed files with 88 additions and 24 deletions
+9
View File
@@ -123,6 +123,15 @@ class MoonMailerCommand extends Command
if($today->greaterThanOrEqualTo($rental->RentalEnd)) {
MoonRent::where(['id' => $rental->id])->delete();
}
//Mark the moon as not paid for the next month
Moon::where([
'System' => $rental->System,
'Planet' => $rental->Planet,
'Moon' => $rental->Moon,
])->update([
'Paid' => 'No',
]);
}