modified moons and adminmoons controllers

This commit is contained in:
2019-05-28 23:54:04 -05:00
parent 35555e3d7c
commit ca6829a3ba
4 changed files with 12 additions and 8 deletions

View File

@@ -37,8 +37,6 @@ class MoonsController extends Controller
$type = Auth::user()->user_type;
//Setup calls to the MoonCalc class
$moonCalc = new MoonCalc();
//Update the prices for the moon
$moonCalc->FetchNewPrices();
//get all of the moons from the database
$moons = DB::table('Moons')->orderBy('System', 'asc')->get();
//Set the rental date as last month for moons not rented
@@ -126,8 +124,6 @@ class MoonsController extends Controller
//Setup calls to the MoonCalc class
$moonCalc = new MoonCalc();
//Update the prices for the moon
$moonCalc->FetchNewPrices();
$totalGoo = $moonCalc->SpatialMoonsOnlyGooTotalWorth($firstOre, $firstQuantity, $secondOre, $secondQuantity,
$thirdOre, $thirdQuantity, $fourthOre, $fourthQuantity);