testing pagination for wallet journals

This commit is contained in:
2018-12-20 20:44:25 -06:00
parent 1a62227a3e
commit 7393342eca
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -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);
}
-1
View File
@@ -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 {