From af6cd3f02b4a15dca2b7302f87386c675861555d Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 13 Dec 2018 17:24:41 -0600 Subject: [PATCH] CorpJournal Command --- app/Console/Commands/corpJournal.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/corpJournal.php b/app/Console/Commands/corpJournal.php index 45fb6d432..fd4539785 100644 --- a/app/Console/Commands/corpJournal.php +++ b/app/Console/Commands/corpJournal.php @@ -62,9 +62,10 @@ class CorpJournal extends Command $finishedCorps = array(); $corpCompleted = false; //Get the corps with structures logged in the database - $corps = DB::table('CorpStructures')->select('character_id', 'corporation_id')->groupBy('corporation_id')->get(); + $corps = DB::table('CorpStructures')->select('corporation_id')->groupBy('corporation_id')->get(); foreach($corps as $corp) { - $this->GetJournal($corp->character_id); + $charId = DB::table('CorpStructures')->select('character_id')->where(['corporation_id' => $corp->corporation_id])->first(); + $this->GetJournal($charId); } //Mark the job as finished