diff --git a/app/Library/Moons/MoonCalc.php b/app/Library/Moons/MoonCalc.php index 224d527e4..d5b28a78c 100644 --- a/app/Library/Moons/MoonCalc.php +++ b/app/Library/Moons/MoonCalc.php @@ -214,6 +214,8 @@ class MoonCalc { $lookupHelper = new LookupHelper; $finalName = ''; + $pastTime = Carbon::now()->subDays(30); + //Get the price of the moongoo $atmosphericGasesPrice = MineralPrice::where(['ItemId' => 16634])->where('Time', '>', $pastTime)->avg('Price'); $evaporiteDepositsPirce = MineralPrice::where(['ItemId' => 16635])->where('Time', '>', $pastTime)->avg('Price');