diff --git a/app/Console/Commands/corpJournal.php b/app/Console/Commands/corpJournal.php index aead25dd4..7e44b367a 100644 --- a/app/Console/Commands/corpJournal.php +++ b/app/Console/Commands/corpJournal.php @@ -65,6 +65,7 @@ class CorpJournal extends Command $corps = CorpStructure::select('corporation_id')->groupBy('corporation_id')->get(); foreach($corps as $corp) { $charId = CorpStructure::where(['corporation_id' => $corp->corporation_id])->first(['character_id']); + $this->line($charId); $finance->GetWalletJournal(1, $charId[0]); } diff --git a/app/Library/Finances/Helper/FinanceHelper.php b/app/Library/Finances/Helper/FinanceHelper.php index f79465fb9..99269e2a2 100644 --- a/app/Library/Finances/Helper/FinanceHelper.php +++ b/app/Library/Finances/Helper/FinanceHelper.php @@ -26,7 +26,7 @@ class FinanceHelper { public function GetWalletJournal($division, $charId) { //Get hte ESI token for the corporation to add new wallet journals into the database - $token = EsiToken::where('character_id', $charId)->get(); + $token = EsiToken::where(['character_id' => $charId])->get(); //Reference to see if the character is in our look up table for corporations and characters $corpId = $this->GetCharCorp($charId);