corp journal job added to cron for testing

This commit is contained in:
2019-05-03 23:21:11 -05:00
parent 3c0dd56b8c
commit 3268b20e25
2 changed files with 3 additions and 1 deletions

View File

@@ -63,10 +63,12 @@ class CorpJournalCommand extends Command
$corpCompleted = false;
//Get the corps with structures logged in the database
$corps = CorpStructure::select('corporation_id')->groupBy('corporation_id')->get();
/*
foreach($corps as $corp) {
$charId = CorpStructure::where(['corporation_id' => $corp->corporation_id])->first();
$finance->GetWalletJournal(1, $charId->character_id);
}
*/
//Get the corps with structures, and dispatch jobs accordingly
foreach($corps as $corp) {

View File

@@ -286,7 +286,7 @@ class FinanceHelper {
//Get the ESI refresh token for the corporation
$tokenData = $this->TokenInfo($charId);
$token = $tokenData['token'];
$scope = $tokdenData['scope'];
$scope = $tokenData['scope'];
if($this->TokenNotFound($token, $scope)) {
return null;