update not paid for moon mailer

This commit is contained in:
2019-08-01 21:51:33 -05:00
parent 7698a02a31
commit e6b05806f0
+7 -11
View File
@@ -131,17 +131,13 @@ class MoonMailerCommand extends Command
}
private function UpdateNotPaid(MoonRental $rental) {
$today = Carbon::now();
if($today >= $rental->Paid_Until) {
MoonRental::where([
'System' => $rental->System,
'Planet'=> $rental->Planet,
'Moon'=> $rental->Moon,
])->update([
'Paid' => 'No',
]);
}
MoonRental::where([
'System' => $rental->System,
'Planet'=> $rental->Planet,
'Moon'=> $rental->Moon,
])->update([
'Paid' => 'No',
]);
}
private function SaveSentRecord($sender, $subject, $body, $recipient, $recipientType) {