From 7393342eca1ec3fd1e031b344fe12a1ef1b20b88 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 20 Dec 2018 20:44:25 -0600 Subject: [PATCH] testing pagination for wallet journals --- app/Console/Commands/corpJournal.php | 4 +++- app/Library/FinanceHelper.php | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/corpJournal.php b/app/Console/Commands/corpJournal.php index c5d078df6..e4e162544 100644 --- a/app/Console/Commands/corpJournal.php +++ b/app/Console/Commands/corpJournal.php @@ -64,8 +64,10 @@ 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) { + $this->line('Retrieving Corporation Journals for ' . $corp->corporation_id); $charId = DB::table('CorpStructures')->select('character_id')->where(['corporation_id' => $corp->corporation_id])->first(); - $this->GetJournal($charId->character_id); + $lastPage = $this->GetJournal($charId->character_id); + $this->line('Last Page recorded was ' . $lastPage); $this->line('Received Corporation Journals for ' . $corp->corporation_id); } diff --git a/app/Library/FinanceHelper.php b/app/Library/FinanceHelper.php index e60fcb90d..a70c53f31 100644 --- a/app/Library/FinanceHelper.php +++ b/app/Library/FinanceHelper.php @@ -53,7 +53,6 @@ class FinanceHelper { //If more than one page is found, decode the first set of wallet entries, then call for the next pages do { - $this->line($currentPage); //Call the first page of the wallet journal, as we are always going to get at least one page. //If we have more pages, then we will continue through the while loop. try {