diff --git a/app/Console/Commands/corpJournal.php b/app/Console/Commands/corpJournal.php index 36f32c4b7..61c0dc791 100644 --- a/app/Console/Commands/corpJournal.php +++ b/app/Console/Commands/corpJournal.php @@ -64,7 +64,7 @@ class CorpJournal extends Command //Get the corps with structures logged in the database $corps = CorpStructure::select('corporation_id')->groupBy('corporation_id')->get(); foreach($corps as $corp) { - $charId = CorpStructure::where(['corporation_id' => $corp->corporation_id])->get(); + $charId = CorpStructure::where(['corporation_id' => $corp->corporation_id])->first(); $this->line($charId); $finance->GetWalletJournal(1, $charId->character_id); }