From 3014e7db3022861c5337191c80f01c52a4665cc9 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 4 May 2019 22:53:21 -0500 Subject: [PATCH] corp journal conversion --- app/Console/Commands/corpJournal.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/corpJournal.php b/app/Console/Commands/corpJournal.php index 0b3113af0..7073e9674 100644 --- a/app/Console/Commands/corpJournal.php +++ b/app/Console/Commands/corpJournal.php @@ -72,12 +72,12 @@ class CorpJournalCommand extends Command //If the corporation isn't the holding corporation, then process the data. //We process holding corporation data elsewhere. if($corp->corporation_id != 98287666) { - $charId = CorpStructure::where(['corporation_id' => $corp->corporation_id])->first(); - $pages = $finance->GetJournalPageCount(1, $charId); + $structure = CorpStructure::where(['corporation_id' => $corp->corporation_id])->first(); + $pages = $finance->GetJournalPageCount(1, $structure->character_id); for($i = 1; $i <= $pages; $i++) { $job = new JobProcessWalletJournal; $job->division = 1; - $job->charId = $charId; + $job->charId = $structure->character_id; $job->page = $i; ProcessWalletJournalJob::dispatch($job); }