From 5d4dc94c2967c47cd593385fec3165ecf5b03f5d Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 29 Dec 2018 21:16:41 -0600 Subject: [PATCH] mailer --- app/Console/Commands/calculatemarkettax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/calculatemarkettax.php b/app/Console/Commands/calculatemarkettax.php index c895c365a..f6911819f 100644 --- a/app/Console/Commands/calculatemarkettax.php +++ b/app/Console/Commands/calculatemarkettax.php @@ -66,8 +66,8 @@ class CalculateMarketTax extends Command $end->second = 59; //Get the set of corporations from the structure table - $corps = CorpStructure::where(['structure_type' => 'Market'])->distinct('corporation_id'); - $this->line('Got all of the corps with markets.'); + $corps = CorpStructure::select('corporation_id')->get(); + $this->line('Got all of the corps with markets.' . sizeof($corps)); foreach($corps as $corp) { $this->line('Entered foreach loop'); $finalTaxes = $sHelper->GetTaxes($corp->corporation_id, 'Market', $start, $end);