From 8837646f4479b9568a36517a256319fefa965f13 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 24 Dec 2018 12:18:41 -0600 Subject: [PATCH] troubleshooting --- app/Console/Commands/corpJournal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/corpJournal.php b/app/Console/Commands/corpJournal.php index 9ae1b9085..36f32c4b7 100644 --- a/app/Console/Commands/corpJournal.php +++ b/app/Console/Commands/corpJournal.php @@ -64,9 +64,9 @@ 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])->first(['character_id']); + $charId = CorpStructure::where(['corporation_id' => $corp->corporation_id])->get(); $this->line($charId); - $finance->GetWalletJournal(1, $charId['character_id']); + $finance->GetWalletJournal(1, $charId->character_id); } //Mark the job as finished