diff --git a/app/Console/Commands/moonmailer.php b/app/Console/Commands/moonmailer.php index 53b32ea6e..ae8f63757 100644 --- a/app/Console/Commands/moonmailer.php +++ b/app/Console/Commands/moonmailer.php @@ -70,7 +70,7 @@ class MoonMailerCommand extends Command 'System' => $rental->System, 'Planet' => $rental->Planet, 'Moon' => $rental->Moon, - ]); + ])->first(); //Get the updated price for the moon $price = $moonCalc->SpatialMoonsOnlyGoo($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity, $moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity);