From 24a39c492d7bd0901be051ec4aba38b1dd1ea3c6 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 24 Dec 2018 12:11:34 -0600 Subject: [PATCH] troubleshooting --- app/Console/Commands/corpJournal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/corpJournal.php b/app/Console/Commands/corpJournal.php index 5f01299a1..250983baf 100644 --- a/app/Console/Commands/corpJournal.php +++ b/app/Console/Commands/corpJournal.php @@ -63,7 +63,7 @@ class CorpJournal extends Command //Get the corps with structures logged in the database $corps = DB::table('CorpStructures')->select('corporation_id')->groupBy('corporation_id')->get(); foreach($corps as $corp) { - $charId = DB::table('CorpStructures')->select('character_id')->where(['corporation_id' => $corp->corporation_id])->first(); + $charId = CorpStructure::where(['corporation_id' => $corp->corporation_id])->select('character_id')->first(); $this->line($charId); $finance->GetWalletJournal(1, $charId); }